FormIt C++ API
v23.0.0 (2023.0.0)
|
The Point3d class stores a point in 3D space.
The coordinates of the point are accessed via public data members, x, y, and z, or via the subscript operator, where indices 0, 1, and 2 are the x-, y-, and z- coordinates, respectively.
#include <Point3d.h>
Public Member Functions | |
Point3d () | |
Point3d (double xx, double yy, double zz) | |
Point3d | operator+ (const Point3d &p) const |
Point3d | operator+ (const Vector3d &v) const |
Vector3d | operator- (const Point3d &p) const |
Point3d | operator- (const Vector3d &v) const |
Point3d | operator- () const |
Point3d | operator* (double scalar) const |
Point3d | operator/ (double scalar) const |
double | operator% (const Vector3d &v) const |
double | operator% (const UnitVector3d &v) const |
double | operator[] (size_t index) const |
double & | operator[] (size_t index) |
double | length () const |
double | lengthSqrd () const |
double | lengthRect () const |
double | dist (const Point3d &p) const |
double | distSqrd (const Point3d &p) const |
double | distRect (const Point3d &p) const |
bool | isEqual (const Point3d &p, double epsSqrd=WSM_DISTANCE_TOL2) const |
bool | isEqualRect (const Point3d &p, double epsRect=WSM_DISTANCE_TOL) const |
void | set (double xx, double yy, double zz) |
void | zero () |
Point3d & | scale (const Vector3d &v) |
Point3d | getScaled (const Vector3d &v) const |
void | operator+= (const Point3d &p) |
void | operator+= (const Vector3d &v) |
void | operator-= (const Point3d &p) |
void | operator-= (const Vector3d &v) |
void | operator*= (double scalar) |
void | operator/= (double scalar) |
void | operator*= (const Transf3d &) |
Point3d | project (const Transf3d &) const |
bool | isBetween (const Point3d &p1, const Point3d &p2) const |
Returns true iff this point (that is assumed to lie on the line defined by the two points p1, p2) is between the two given points or is coincident with one of the points. More... | |
bool | isValid () const |
Vector3d | toVector3d () const |
Public Attributes | |
double | x |
double | y |
double | z |
Static Public Attributes | |
static const Point3d | kNull |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns true iff this point (that is assumed to lie on the line defined by the two points p1, p2) is between the two given points or is coincident with one of the points.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void WSM::Point3d::operator*= | ( | const Transf3d & | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
double WSM::Point3d::x |
double WSM::Point3d::y |
double WSM::Point3d::z |