XLE
v0.02.0
|
A 2D field of 2D vectors More...
#include <RegularNumberField.h>
Public Types | |
using | ValueType = Float2 |
using | Coord = UInt2 |
using | FloatCoord = Float2 |
Public Attributes | |
Store * | _u |
Store * | _v |
UInt2 | _dims |
Static Public Attributes | |
static const unsigned | NeighborCount = 9 |
static const unsigned | BilinearWeightCount = 4 |
A 2D field of 2D vectors
This is an abstraction of a field of vectors. It provides a simple interface that is independent of the underlying storage implementation. This allows us to implement general math operations on fields of data without too many restriction on how the data is stored in memory (and whether the calling code is using vector implementations from Eigen, CML, or some other library).
This implementation is a square grid of vectors. X and Y components of the vectors are not interleaved (ie, they are stored separately in memory)