A data type for dealing with an interleaved 3D coordinate. More...
#include <ash/morton.h>
Public Types | |
enum | { D = DIM_3D } |
typedef U | value_type |
The basic unsigned type underneath. | |
typedef impl::morton_masks < value_type, DIM_3D > | mask |
The mask set associated with this type. | |
typedef PCoordXYZ< value_type > | pcoord_type |
The pcoord type this converts to. | |
typedef impl::_Morton_itr < _Type, value_type, mask::X > | x_type |
The x-coordinate's interface type. | |
typedef impl::_Morton_itr < _Type, value_type, mask::Y > | y_type |
The y-coordinate's interface type. | |
typedef impl::_Morton_itr < _Type, value_type, mask::Z > | z_type |
The z-coordinate's interface type. | |
Public Member Functions | |
Constructors/Destructors | |
We use the default destructor. | |
MortonXYZ () | |
Default constructor. | |
MortonXYZ (MortonXYZ const &m) | |
Copy constructor. | |
template<typename V > | |
MortonXYZ (MortonXYZ< V > const &m) | |
Copy constructor for other sizes. | |
MortonXYZ (value_type val) | |
Constructor from the underlying value_type. | |
MortonXYZ (pcoord_type const &p) | |
PCoordXYZ conversion constructor. | |
Cast Operators | |
operator value_type & () | |
operator const value_type & () const | |
Public Attributes | |
x_type | x |
The x-coordinate interface. | |
y_type | y |
The y-coordinate interface. | |
z_type | z |
The z-coordinate interface. |
A data type for dealing with an interleaved 3D coordinate.
U | [uint8|uint16|uint32|uint64] An unsigned type. Also defined as MortonXYZ::value_type. |
The size of U is equal to the total size of the object.
typedef impl::morton_masks<value_type, DIM_3D> ash::MortonXYZ< U >::mask |
The mask set associated with this type.
typedef PCoordXYZ<value_type> ash::MortonXYZ< U >::pcoord_type |
The pcoord type this converts to.
typedef U ash::MortonXYZ< U >::value_type |
The basic unsigned type underneath.
typedef impl::_Morton_itr<_Type, value_type, mask::X> ash::MortonXYZ< U >::x_type |
The x-coordinate's interface type.
typedef impl::_Morton_itr<_Type, value_type, mask::Y> ash::MortonXYZ< U >::y_type |
The y-coordinate's interface type.
typedef impl::_Morton_itr<_Type, value_type, mask::Z> ash::MortonXYZ< U >::z_type |
The z-coordinate's interface type.
ash::MortonXYZ< U >::MortonXYZ | ( | ) | [inline] |
Default constructor.
ash::MortonXYZ< U >::MortonXYZ | ( | MortonXYZ< U > const & | m | ) | [inline] |
Copy constructor.
m | The MortonXYZ to copy. |
ash::MortonXYZ< U >::MortonXYZ | ( | MortonXYZ< V > const & | m | ) | [inline, explicit] |
Copy constructor for other sizes.
m | The MortonXYZ<> to copy. |
ash::MortonXYZ< U >::MortonXYZ | ( | value_type | val | ) | [inline] |
Constructor from the underlying value_type.
ash::MortonXYZ< U >::MortonXYZ | ( | pcoord_type const & | p | ) | [inline] |
x_type ash::MortonXYZ< U >::x |
The x-coordinate interface.
y_type ash::MortonXYZ< U >::y |
The y-coordinate interface.
z_type ash::MortonXYZ< U >::z |
The z-coordinate interface.
© 2012 | Licensed under | Hosted by | Generated by 1.7.4 |