UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NewtonCorotatedCache.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3#include "Chaos/Matrix.h"
4
5namespace Chaos::Softs
6{
7
8template <typename T>
10{
13
15
16
18 {
19 JFInvTCache.Init((T)0., 3*3);
20 RCache.Init((T)0., 3*3);
21 DInvCache.Init((T)0., 3*3);
22 };
23
25 void P(const Chaos::PMatrix<T, 3, 3>& F, const T mu, const T lambda, Chaos::PMatrix<T, 3, 3>& P);
27
28};
29
30template <typename T>
31T PsiCorotated(const Chaos::PMatrix<T, 3, 3>& F, const T mu, const T lambda);
32
33template <typename T>
34void PCorotated(const Chaos::PMatrix<T, 3, 3>& F, const T mu, const T lambda, Chaos::PMatrix<T, 3, 3>& P);
35
36}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Matrix.h:21
Definition Array.h:670
void Init(const ElementType &Element, SizeType Number)
Definition Array.h:3043
Definition CollectionEmbeddedSpringConstraintFacade.cpp:6
void PCorotated(const Chaos::PMatrix< T, 3, 3 > &Fe, const T mu, const T lambda, Chaos::PMatrix< T, 3, 3 > &P)
Definition NewtonCorotatedCache.cpp:116
T PsiCorotated(const Chaos::PMatrix< T, 3, 3 > &F, const T mu, const T lambda)
Definition NewtonCorotatedCache.cpp:99
Definition NewtonCorotatedCache.h:10
TArray< T > RCache
Definition NewtonCorotatedCache.h:11
T JCache
Definition NewtonCorotatedCache.h:14
TArray< T > JFInvTCache
Definition NewtonCorotatedCache.h:11
CorotatedCache()
Definition NewtonCorotatedCache.h:17
TArray< T > DInvCache
Definition NewtonCorotatedCache.h:12
void P(const Chaos::PMatrix< T, 3, 3 > &F, const T mu, const T lambda, Chaos::PMatrix< T, 3, 3 > &P)
Definition NewtonCorotatedCache.cpp:39
void deltaP(const Chaos::PMatrix< T, 3, 3 > &F, const Chaos::PMatrix< T, 3, 3 > &dF, const T mu, const T lambda, Chaos::PMatrix< T, 3, 3 > &dP)
Definition NewtonCorotatedCache.cpp:54
void UpdateCache(const Chaos::PMatrix< T, 3, 3 > &F)
Definition NewtonCorotatedCache.cpp:11