|
| Coord () |
|
constexpr | Coord (Int32 xyz) |
|
constexpr | Coord (Int32 x, Int32 y, Int32 z) |
|
| Coord (const Vec3i &v) |
|
| Coord (const Vec3I &v) |
|
| Coord (const Int32 *v) |
|
Coord & | reset (Int32 x, Int32 y, Int32 z) |
| Reset all three coordinates with the specified arguments. More...
|
|
Coord & | reset (Int32 xyz) |
| Reset all three coordinates with the same specified argument. More...
|
|
Coord & | setX (Int32 x) |
|
Coord & | setY (Int32 y) |
|
Coord & | setZ (Int32 z) |
|
Coord & | offset (Int32 dx, Int32 dy, Int32 dz) |
|
Coord & | offset (Int32 n) |
|
Coord | offsetBy (Int32 dx, Int32 dy, Int32 dz) const |
|
Coord | offsetBy (Int32 n) const |
|
Coord & | operator+= (const Coord &rhs) |
|
Coord & | operator-= (const Coord &rhs) |
|
Coord | operator+ (const Coord &rhs) const |
|
Coord | operator- (const Coord &rhs) const |
|
Coord | operator- () const |
|
Coord | operator>> (size_t n) const |
|
Coord | operator<< (size_t n) const |
|
Coord & | operator<<= (size_t n) |
|
Coord & | operator>>= (size_t n) |
|
Coord | operator& (Int32 n) const |
|
Coord | operator| (Int32 n) const |
|
Coord & | operator&= (Int32 n) |
|
Coord & | operator|= (Int32 n) |
|
Int32 | x () const |
|
Int32 | y () const |
|
Int32 | z () const |
|
Int32 | operator[] (size_t i) const |
|
Int32 & | x () |
|
Int32 & | y () |
|
Int32 & | z () |
|
Int32 & | operator[] (size_t i) |
|
const Int32 * | data () const |
|
Int32 * | data () |
|
const Int32 * | asPointer () const |
|
Int32 * | asPointer () |
|
Vec3d | asVec3d () const |
|
Vec3s | asVec3s () const |
|
Vec3i | asVec3i () const |
|
Vec3I | asVec3I () const |
|
void | asXYZ (Int32 &x, Int32 &y, Int32 &z) const |
|
bool | operator== (const Coord &rhs) const |
|
bool | operator!= (const Coord &rhs) const |
|
bool | operator< (const Coord &rhs) const |
| Lexicographic less than. More...
|
|
bool | operator<= (const Coord &rhs) const |
| Lexicographic less than or equal to. More...
|
|
bool | operator> (const Coord &rhs) const |
| Lexicographic greater than. More...
|
|
bool | operator>= (const Coord &rhs) const |
| Lexicographic greater than or equal to. More...
|
|
void | minComponent (const Coord &other) |
| Perform a component-wise minimum with the other Coord. More...
|
|
void | maxComponent (const Coord &other) |
| Perform a component-wise maximum with the other Coord. More...
|
|
size_t | minIndex () const |
| Return the index (0, 1 or 2) with the smallest value. More...
|
|
size_t | maxIndex () const |
| Return the index (0, 1 or 2) with the largest value. More...
|
|
void | read (std::istream &is) |
|
void | write (std::ostream &os) const |
|
template<int Log2N = 20> |
size_t | hash () const |
| Return a hash value for this coordinate. More...
|
|
|
static Coord | min () |
| Return the smallest possible coordinate. More...
|
|
static Coord | max () |
| Return the largest possible coordinate. More...
|
|
template<typename T > |
static Coord | round (const Vec3< T > &xyz) |
| Return xyz rounded to the closest integer coordinates (cell centered conversion). More...
|
|
template<typename T > |
static Coord | floor (const Vec3< T > &xyz) |
| Return the largest integer coordinates that are not greater than xyz (node centered conversion). More...
|
|
template<typename T > |
static Coord | ceil (const Vec3< T > &xyz) |
| Return the largest integer coordinates that are not greater than xyz+1 (node centered conversion). More...
|
|
static Coord | minComponent (const Coord &lhs, const Coord &rhs) |
| Return the component-wise minimum of the two Coords. More...
|
|
static Coord | maxComponent (const Coord &lhs, const Coord &rhs) |
| Return the component-wise maximum of the two Coords. More...
|
|
static bool | lessThan (const Coord &a, const Coord &b) |
|
Signed (x, y, z) 32-bit integer coordinates.