CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_base.h>
Public Member Functions | |
Point3 () noexcept | |
Point3 (T aX, T aY, T aZ) noexcept | |
Point3 (Point2< T > aPoint) noexcept | |
bool | operator== (const Point3< T > &aPoint) const noexcept |
bool | operator!= (const Point3< T > &aPoint) const noexcept |
void | operator+= (const Point3< T > &aPoint) noexcept |
void | operator-= (const Point3< T > &aPoint) noexcept |
void | operator*= (T aFactor) noexcept |
bool | operator< (const Point3< T > &aPoint) const noexcept |
bool | operator> (const Point2< T > &aPoint) const noexcept |
T | VectorLength () const noexcept |
T | DistanceFrom (const Point3< T > &aOther) const noexcept |
Point3 | UnitVector () const noexcept |
Static Public Member Functions | |
static Point3< T > | Normal (const Point3< T > &aA, const Point3< T > &aB, const Point3< T > &aC) noexcept |
Public Attributes | |
T | X { 0 } |
T | Y { 0 } |
T | Z { 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 CartoTypeCore::Point3< T >::X { 0 } |
The x coordinate.
T CartoTypeCore::Point3< T >::Y { 0 } |
The y coordinate.
T CartoTypeCore::Point3< T >::Z { 0 } |
The z coordinate.