Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
HairSettings::GridSampler Class Reference

#include <HairSettings.h>

Public Member Functions

 GridSampler (const HairSettings *inSettings)
 
void PositionToIndexAndFraction (Vec3Arg inPosition, UVec4 &outIndex, Vec3 &outFraction) const
 Convert a position in hair space to a grid index and fraction.
 
template<typename F >
void Sample (UVec4Arg inIndex, Vec3Arg inFraction, const F &inFunc) const
 
template<typename F >
void Sample (Vec3Arg inPosition, const F &inFunc) const
 

Public Attributes

UVec4 mGridSizeMin2
 
Vec3 mGridSizeMin1
 
UVec4 mGridStride
 
Vec3 mOffset
 
Vec3 mScale
 

Constructor & Destructor Documentation

◆ GridSampler()

HairSettings::GridSampler::GridSampler ( const HairSettings * inSettings)
inlineexplicit

Member Function Documentation

◆ PositionToIndexAndFraction()

void HairSettings::GridSampler::PositionToIndexAndFraction ( Vec3Arg inPosition,
UVec4 & outIndex,
Vec3 & outFraction ) const
inline

Convert a position in hair space to a grid index and fraction.

◆ Sample() [1/2]

template<typename F >
void HairSettings::GridSampler::Sample ( UVec4Arg inIndex,
Vec3Arg inFraction,
const F & inFunc ) const
inline

◆ Sample() [2/2]

template<typename F >
void HairSettings::GridSampler::Sample ( Vec3Arg inPosition,
const F & inFunc ) const
inline

Member Data Documentation

◆ mGridSizeMin1

Vec3 HairSettings::GridSampler::mGridSizeMin1

◆ mGridSizeMin2

UVec4 HairSettings::GridSampler::mGridSizeMin2

◆ mGridStride

UVec4 HairSettings::GridSampler::mGridStride

◆ mOffset

Vec3 HairSettings::GridSampler::mOffset

◆ mScale

Vec3 HairSettings::GridSampler::mScale

The documentation for this class was generated from the following file: