#include <core_XYZ.h>
Public Member Functions | |
core_XYZ () | |
core_XYZ (const double x, const double y, const double z) | |
core_XYZ (const core_XYZ &XYZ) | |
~core_XYZ () | |
Destructor. | |
double | X () const |
void | SetX (const double x) |
double | Y () const |
void | SetY (const double y) |
double | Z () const |
void | SetZ (const double z) |
void | SetXYZ (const core_XYZ &other) |
double | Coord (const int idx) const |
double | SetCoord (const int idx, const double val) |
bool | IsOrigin (const double tol3D=0.) const |
bool | IsEqual (const core_XYZ &XYZ, const double tol3D=0.) const |
core_XYZ | CWiseMin (const core_XYZ &XYZ) const |
core_XYZ | CWiseMax (const core_XYZ &XYZ) const |
double | GetMaxComponent () const |
mobiusCore_EXPORT double | Modulus () const |
mobiusCore_EXPORT double | SquaredModulus () const |
mobiusCore_EXPORT core_XYZ | Multiplied (const double coeff) const |
mobiusCore_EXPORT void | Normalize () |
mobiusCore_EXPORT core_XYZ | Normalized () const |
mobiusCore_EXPORT void | Reverse () |
mobiusCore_EXPORT core_XYZ | Reversed () const |
mobiusCore_EXPORT double | Dot (const core_XYZ &XYZ) const |
mobiusCore_EXPORT core_XYZ | Cross (const core_XYZ &XYZ) const |
mobiusCore_EXPORT double | Angle (const core_XYZ &XYZ) const |
mobiusCore_EXPORT double | AngleWithRef (const core_XYZ &other, const core_XYZ &ref) const |
mobiusCore_EXPORT bool | operator== (const core_XYZ &XYZ) const |
mobiusCore_EXPORT core_XYZ & | operator= (const core_XYZ &XYZ) |
mobiusCore_EXPORT core_XYZ | operator* (const double coeff) const |
mobiusCore_EXPORT core_XYZ | operator*= (const double coeff) |
mobiusCore_EXPORT double | operator* (const core_XYZ &XYZ) const |
mobiusCore_EXPORT core_XYZ | operator^ (const core_XYZ &XYZ) const |
mobiusCore_EXPORT core_XYZ | operator/ (const double coeff) const |
mobiusCore_EXPORT core_XYZ | operator/= (const double coeff) |
mobiusCore_EXPORT core_XYZ | operator+ (const core_XYZ &XYZ) const |
mobiusCore_EXPORT core_XYZ & | operator+= (const core_XYZ &XYZ) |
mobiusCore_EXPORT core_XYZ | Invert () const |
mobiusCore_EXPORT core_XYZ | operator- (const core_XYZ &XYZ) const |
mobiusCore_EXPORT core_XYZ & | operator-= (const core_XYZ &XYZ) |
mobiusCore_EXPORT void | Transform (const double(&mx)[3][3]) |
Static Public Member Functions | |
static int | num_coordinates () |
static mobiusCore_EXPORT core_XYZ | O () |
static mobiusCore_EXPORT core_XYZ | OX () |
static mobiusCore_EXPORT core_XYZ | OY () |
static mobiusCore_EXPORT core_XYZ | OZ () |
static mobiusCore_EXPORT bool | AreSamePlane (const std::vector< core_XYZ > &dirs, const double prec=core_Precision::Resolution3D()) |
static mobiusCore_EXPORT bool | AreSpanningWholeSpace (const std::vector< core_XYZ > &dirs, const double prec=core_Precision::Resolution3D()) |
Geometric primitive for 3D point.
|
inline |
Default constructor. Initializes point coordinates with origin values: (0, 0, 0).
|
inline |
Constructor with coordinates.
x | [in] first coordinate. |
y | [in] second coordinate. |
z | [in] third coordinate. |
|
inline |
Assignment constructor.
XYZ | [in] point to assign to this one. |
|
inline |
Returns coordinate by its 0-based index.
idx | [in] 0 for X, 1 for Y, 2 for Z. |
Compute component-wise maximum of two vectors.
[in] | XYZ | other tuple to compare this one with. |
Compute component-wise minimum of two vectors.
[in] | XYZ | other tuple to compare this one with. |
|
inline |
|
inline |
Checks if this coordinate tuple is equal to the passed one.
[in] | XYZ | other point to compare this one with. |
[in] | tol3D | three-dimensional tolerance for comparison. |
|
inline |
Returns true if this vector is zero.
[in] | tol3D | three-dimensional tolerance for comparison. |
|
inlinestatic |
|
inline |
Updates coordinate having the specified 0-based index with the passed value.
idx | [in] 0 for X, 1 for Y, 2 for Z. |
val | [in] value to set. |
|
inline |
Sets X coordinate.
x | [in] value to set. |
|
inline |
Sets all coordinates of this class equal to the coordinates of the passed triple.
[in] | other | other triple. |
|
inline |
Sets Y coordinate.
y | [in] value to set. |
|
inline |
Sets Z coordinate.
z | [in] value to set. |
|
inline |
Returns X coordinate of the 3D point.
|
inline |
Returns Y coordinate of the 3D point.
|
inline |
Returns Z coordinate of the 3D point.