Field3D
|
Contains utility functions for constructing coordinate systems. More...
Go to the source code of this file.
Namespaces | |
namespace | detail |
Functions | |
template<typename T > | |
FIELD3D_VEC3_T< T > | detail::ceil (const FIELD3D_VEC3_T< T > &v) |
Ceil function for Vec3. | |
template<typename T > | |
FIELD3D_MTX_T< T > | coordinateSystem (const FIELD3D_BOX_T< FIELD3D_VEC3_T< T > > &wsBounds) |
Constructs a coordinate system given a bounding box. | |
template<typename T > | |
FIELD3D_MTX_T< T > | coordinateSystem (const FIELD3D_BOX_T< FIELD3D_VEC3_T< T > > &wsBounds, const FIELD3D_VEC3_T< T > &wsVoxelSize) |
Constructs a coordinate system that has its lower left corner at an even multiplier of the voxel-size, to ensure that voxel centers don't shift as the domain grows. | |
template<typename T > | |
FIELD3D_MTX_T< T > | coordinateSystem (const FIELD3D_BOX_T< FIELD3D_VEC3_T< T > > &wsBounds, const FIELD3D_VEC3_T< T > &wsVoxelSize, Box3i &extents) |
Constructs a coordinate system that has its lower left corner at an even multiplier of the voxel-size, to ensure that voxel centers don't shift as the domain grows. | |
template<typename T > | |
FIELD3D_NAMESPACE_OPEN FIELD3D_MTX_T< T > | coordinateSystem (const FIELD3D_VEC3_T< T > &e1, const FIELD3D_VEC3_T< T > &e2, const FIELD3D_VEC3_T< T > &e3, const FIELD3D_VEC3_T< T > &origin) |
Constructs a coordinate systems given a set of basis vectors and an origin. | |
template<typename T > | |
FIELD3D_MTX_T< T > | coordinateSystem (const FIELD3D_VEC3_T< T > &e1, const FIELD3D_VEC3_T< T > &e2, const FIELD3D_VEC3_T< T > &e3, const FIELD3D_VEC3_T< T > &origin) |
Constructs a coordinate systems given a set of basis vectors and an origin. | |
template<typename T > | |
FIELD3D_VEC3_T< T > | detail::floor (const FIELD3D_VEC3_T< T > &v) |
Floor function for Vec3. | |
Contains utility functions for constructing coordinate systems.
Definition in file CoordSys.h.
FIELD3D_NAMESPACE_OPEN FIELD3D_MTX_T< T > coordinateSystem | ( | const FIELD3D_VEC3_T< T > & | e1, |
const FIELD3D_VEC3_T< T > & | e2, | ||
const FIELD3D_VEC3_T< T > & | e3, | ||
const FIELD3D_VEC3_T< T > & | origin ) |
Constructs a coordinate systems given a set of basis vectors and an origin.
Definition at line 128 of file CoordSys.h.
References FIELD3D_MTX_T.
Referenced by detail::adjustedMIPFieldMapping(), coordinateSystem(), coordinateSystem(), and coordinateSystem().
FIELD3D_MTX_T< T > coordinateSystem | ( | const FIELD3D_BOX_T< FIELD3D_VEC3_T< T > > & | wsBounds | ) |
Constructs a coordinate system given a bounding box.
Definition at line 188 of file CoordSys.h.
References coordinateSystem(), and FIELD3D_VEC3_T.
FIELD3D_MTX_T< T > coordinateSystem | ( | const FIELD3D_BOX_T< FIELD3D_VEC3_T< T > > & | wsBounds, |
const FIELD3D_VEC3_T< T > & | wsVoxelSize, | ||
Box3i & | extents ) |
Constructs a coordinate system that has its lower left corner at an even multiplier of the voxel-size, to ensure that voxel centers don't shift as the domain grows.
Definition at line 153 of file CoordSys.h.
References detail::ceil(), coordinateSystem(), FIELD3D_BOX_T, FIELD3D_VEC3_T, and detail::floor().
FIELD3D_MTX_T< T > coordinateSystem | ( | const FIELD3D_BOX_T< FIELD3D_VEC3_T< T > > & | wsBounds, |
const FIELD3D_VEC3_T< T > & | wsVoxelSize ) |
Constructs a coordinate system that has its lower left corner at an even multiplier of the voxel-size, to ensure that voxel centers don't shift as the domain grows.
Definition at line 176 of file CoordSys.h.
References coordinateSystem().
FIELD3D_MTX_T< T > coordinateSystem | ( | const FIELD3D_VEC3_T< T > & | e1, |
const FIELD3D_VEC3_T< T > & | e2, | ||
const FIELD3D_VEC3_T< T > & | e3, | ||
const FIELD3D_VEC3_T< T > & | origin ) |
Constructs a coordinate systems given a set of basis vectors and an origin.
Definition at line 128 of file CoordSys.h.
References FIELD3D_MTX_T.
Referenced by detail::adjustedMIPFieldMapping(), coordinateSystem(), coordinateSystem(), and coordinateSystem().