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

Public Types

using ValueType = float
 
using Coord = UInt2
 
using FloatCoord = Float2
 

Public Member Functions

UInt2 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[9], float weights[4], FloatCoord coord, unsigned samplingFlags) const
 
 ScalarField2D (Store *u, UInt2 dims)
 
template<unsigned SamplingFlags>
auto Sample (FloatCoord c) const -> ValueType
 

Public Attributes

Store * _u
 
UInt2 _dims
 

Static Public Attributes

static const unsigned NeighborCount = 9
 
static const unsigned BilinearWeightCount = 4
 

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