CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_base.h>
Public Member Functions | |
TPoint3 () noexcept | |
TPoint3 (T aX, T aY, T aZ) noexcept | |
TPoint3 (TPoint2< T > aPoint) noexcept | |
bool | operator== (const TPoint3< T > &aPoint) const noexcept |
bool | operator!= (const TPoint3< T > &aPoint) const noexcept |
void | operator+= (const TPoint3< T > &aPoint) noexcept |
void | operator-= (const TPoint3< T > &aPoint) noexcept |
void | operator*= (T aFactor) noexcept |
bool | operator< (const TPoint3< T > &aPoint) const noexcept |
bool | operator> (const TPoint2< T > &aPoint) const noexcept |
T | VectorLength () const noexcept |
T | DistanceFrom (const TPoint3< T > &aOther) const noexcept |
TPoint3 | UnitVector () const noexcept |
Static Public Member Functions | |
static TPoint3< T > | Normal (const TPoint3< T > &aA, const TPoint3< T > &aB, const TPoint3< T > &aC) noexcept |
Public Attributes | |
T | iX { 0 } |
T | iY { 0 } |
T | iZ { 0 } |
A templated 3D point class.
|
inlinenoexcept |
Create a point with coordinates (0,0,0).
|
inlinenoexcept |
Create a point, specifying coordinates.
|
inlinenoexcept |
Create a 3D point from a 2D point.
|
inlinenoexcept |
Returns the distance of this point from another point.
|
inlinestaticnoexcept |
Returns the surface normal as a unit vector.
|
inlinenoexcept |
The inequality operator.
|
inlinenoexcept |
Scale a point by a factor.
|
inlinenoexcept |
Offset a point by another point, treated as a positive vector.
|
inlinenoexcept |
Offset a point by another point, treated as a negative vector.
|
inlinenoexcept |
The less-than operator, ordering points by x coordinate, then y coordinate, then z coordinate.
|
inlinenoexcept |
The equality operator.
|
inlinenoexcept |
The greater-than operator, ordering points by x coordinate, then y coordinate.
|
inlinenoexcept |
Returns a unit vector pointing in the same direction as this point treated as a vector.
|
inlinenoexcept |
Returns the length of the vector represented by this point: its distance from the origin (0,0).
T CartoType::TPoint3< T >::iX { 0 } |
The x coordinate.
T CartoType::TPoint3< T >::iY { 0 } |
The y coordinate.
T CartoType::TPoint3< T >::iZ { 0 } |
The z coordinate.