XLE  v0.02.0
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
XLEMath::ScalarField3D< Store > Class Template Reference

Public Types

using ValueType = float
 
using Coord = UInt3
 
using FloatCoord = Float3
 

Public Member Functions

UInt3 Dimensions () const
 
ValueType Load (Coord c) const
 
void Write (Coord x, ValueType value)
 
template<unsigned SamplingFlags = RNFSample::ClampX|RNFSample::ClampY|RNFSample::ClampZ>
ValueType Sample (FloatCoord c) const
 
void GatherNeighbors (ValueType neighbours[27], float weights[8], FloatCoord coord, unsigned samplingFlags) const
 
 ScalarField3D (Store *u, UInt3 dims)
 
template<unsigned SamplingFlags>
auto Sample (FloatCoord c) const -> ValueType
 

Public Attributes

Store * _u
 
UInt3 _dims
 

Static Public Attributes

static const unsigned NeighborCount = 27
 
static const unsigned BilinearWeightCount = 8
 

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