levelz-cpp 0.2.0
|
#include <matrix.hpp>
Public Member Functions | |
CoordinateMatrix3D (int x, int y, int z, LevelZ::Coordinate3D start) | |
CoordinateMatrix3D (int minX, int maxX, int minY, int maxY, int minZ, int maxZ, LevelZ::Coordinate3D start) | |
std::vector< LevelZ::Coordinate3D > | getCoordinates () const |
std::vector< LevelZ::Coordinate3D >::const_iterator | begin () const |
std::vector< LevelZ::Coordinate3D >::const_iterator | end () const |
bool | operator== (const CoordinateMatrix3D &other) const |
bool | operator!= (const CoordinateMatrix3D &other) const |
std::string | to_string () const |
Public Member Functions inherited from LevelZ::CoordinateMatrix |
Static Public Member Functions | |
static LevelZ::CoordinateMatrix3D | from_string (const std::string &str) |
Public Attributes | |
int | minX |
int | maxX |
int | minY |
int | maxY |
int | minZ |
int | maxZ |
LevelZ::Coordinate3D | start |
Represents a 3D matrix of coordinates.
|
inline |
Constructs a new CoordinateMatrix3D object with the minimum coordinates at 0.
x | The maximum x coordinate of the matrix. |
y | The maximum y coordinate of the matrix. |
z | The maximum z coordinate of the matrix. |
start | The starting coordinate of the matrix. |
|
inline |
Constructs a new CoordinateMatrix3D object with the specified minimum and maximum coordinates.
minX | The minimum x coordinate of the matrix. |
maxX | The maximum x coordinate of the matrix. |
minY | The minimum y coordinate of the matrix. |
maxY | The maximum y coordinate of the matrix. |
minZ | The minimum z coordinate of the matrix. |
maxZ | The maximum z coordinate of the matrix. |
start | The starting coordinate of the matrix. |
|
inlinestatic |
Converts a string to a 3D coordinate matrix.
str | The string to convert. |
|
inline |
Gets the coordinates in the matrix.
|
inline |
Checks if two 2D coordinate matrices are not equal.
other | The other coordinate matrix to compare to. |
|
inline |
Checks if two 2D coordinate matrices are equal.
other | The other coordinate matrix to compare to. |
|
inlinevirtual |
Converts this coordinate matrix to a string.
Implements LevelZ::CoordinateMatrix.
int LevelZ::CoordinateMatrix3D::maxX |
The maximum x coordinate of the matrix.
int LevelZ::CoordinateMatrix3D::maxY |
The maximum y coordinate of the matrix.
int LevelZ::CoordinateMatrix3D::maxZ |
The maximum z coordinate of the matrix.
int LevelZ::CoordinateMatrix3D::minX |
The minimum x coordinate of the matrix.
int LevelZ::CoordinateMatrix3D::minY |
The minimum y coordinate of the matrix.
int LevelZ::CoordinateMatrix3D::minZ |
The minimum z coordinate of the matrix.
LevelZ::Coordinate3D LevelZ::CoordinateMatrix3D::start |
The starting coordinate of the matrix.