27template <
class Gr
idType,
typename RealType =
double,
bool bScalarCellSize = true>
34 using CellSizeType = std::conditional_t<bScalarCellSize, RealType, TVector<RealType>>;
70 template<
bool bClamped = false>
78 if constexpr (bClamped)
91 if constexpr (!bClamped)
113 RealType
yz = (1 -
fAy) * (1 -
fAz);
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition MathUtil.h:150
Definition GridInterpolant.h:29
FVector3i Dimensions
Definition GridInterpolant.h:39
GridType * Grid
Definition GridInterpolant.h:36
RealType Outside
Definition GridInterpolant.h:44
void get_value_pair(int I, int J, int K, RealType &A, RealType &B) const
Definition GridInterpolant.h:144
TAxisAlignedBox3< RealType > Bounds() const
Definition GridInterpolant.h:50
TVector< RealType > Gradient(const TVector< RealType > &Pt) const
Definition GridInterpolant.h:152
FVector3i Cell(const TVector< RealType > &Pt) const
Definition GridInterpolant.h:59
std::conditional_t< bScalarCellSize, RealType, TVector< RealType > > CellSizeType
Definition GridInterpolant.h:34
TTriLinearGridInterpolant(GridType *Grid, TVector< RealType > GridOrigin, CellSizeType CellSize, FVector3i Dimensions)
Definition GridInterpolant.h:46
RealType Value(const TVector< RealType > &Pt) const
Definition GridInterpolant.h:71
CellSizeType CellSize
Definition GridInterpolant.h:38
TVector< RealType > GridOrigin
Definition GridInterpolant.h:37
Definition AdvancedWidgetsModule.cpp:13
static constexpr UE_FORCEINLINE_HINT T Clamp(const T X, const T MinValue, const T MaxValue)
Definition UnrealMathUtility.h:592
Definition IntVectorTypes.h:252
int32 Z
Definition IntVectorTypes.h:257
int32 X
Definition IntVectorTypes.h:257
int32 Y
Definition IntVectorTypes.h:257
Definition BoxTypes.h:247
T Z
Definition Vector.h:68
static TVector< T > Zero()
Definition Vector.h:112
T Y
Definition Vector.h:65
T X
Definition Vector.h:62