Rhino C++ API
8.14
|
#include <opennurbs_point.h>
Public Member Functions | |
ON_3dPoint ()=default | |
x,y,z not initialized More... | |
ON_3dPoint (const class ON_2fPoint &) | |
from 2f point More... | |
ON_3dPoint (const class ON_2fVector &) | |
from 2f point More... | |
ON_3dPoint (const class ON_3fPoint &) | |
from 3f point More... | |
ON_3dPoint (const class ON_3fVector &) | |
from 3f point More... | |
ON_3dPoint (const class ON_4fPoint &h) | |
from 4f point- h.w must be non-zero More... | |
ON_3dPoint (const double *) | |
from double[3] array More... | |
ON_3dPoint (const float *) | |
from float[3] array More... | |
ON_3dPoint (const ON_2dPoint &) | |
from 2d point More... | |
ON_3dPoint (const ON_2dVector &) | |
from 2d vector More... | |
ON_3dPoint (const ON_3dPoint &)=default | |
ON_3dPoint (const ON_3dVector &) | |
from 3d vector More... | |
ON_3dPoint (const ON_4dPoint &h) | |
from 4d point - h.w must be non-zero More... | |
ON_3dPoint (double x, double y, double z) | |
~ON_3dPoint ()=default | |
ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const |
double | DistanceTo (const ON_3dPoint &) const |
double | DistanceToSquared (const ON_3dPoint &) const |
double | Fuzz (double tolerance=ON_ZERO_TOLERANCE) const |
tolerance to use when comparing 3d points More... | |
bool | IsCoincident (const ON_3dPoint &P) const |
bool | IsNan () const |
bool | IsNotZero () const |
bool | IsUnset () const |
bool | IsUnsetOrNan () const |
bool | IsValid () const |
bool | IsZero () const |
double | MaximumCoordinate () const |
absolute value of maximum coordinate More... | |
int | MaximumCoordinateIndex () const |
double | MinimumCoordinate () const |
absolute value of minimum coordinate More... | |
int | MinimumCoordinateIndex () const |
operator const double * () const | |
operator double * () | |
(double*) conversion operators More... | |
bool | operator!= (const ON_3dPoint &) const |
double | operator* (const ON_3dPoint &) const |
dot product for points acting as vectors More... | |
double | operator* (const ON_3dVector &) const |
dot product for points acting as vectors More... | |
ON_3dPoint | operator* (const ON_Xform &) const |
ON_3dPoint | operator* (double) const |
ON_3dPoint | operator* (float) const |
ON_3dPoint | operator* (int) const |
ON_3dPoint & | operator*= (double) |
ON_3dPoint | operator+ (const ON_2dPoint &) const |
ON_3dPoint | operator+ (const ON_2dVector &) const |
ON_3dPoint | operator+ (const ON_2fPoint &) const |
ON_3dPoint | operator+ (const ON_2fVector &) const |
ON_3dPoint | operator+ (const ON_3dPoint &) const |
ON_3dPoint | operator+ (const ON_3dVector &) const |
ON_3dPoint | operator+ (const ON_3fPoint &) const |
ON_3dPoint | operator+ (const ON_3fVector &) const |
ON_3dPoint & | operator+= (const ON_3dVector &) |
ON_3dVector | operator- (const ON_2dPoint &) const |
ON_3dPoint | operator- (const ON_2dVector &) const |
ON_3dVector | operator- (const ON_2fPoint &) const |
ON_3dPoint | operator- (const ON_2fVector &) const |
ON_3dVector | operator- (const ON_3dPoint &) const |
ON_3dPoint | operator- (const ON_3dVector &) const |
ON_3dVector | operator- (const ON_3fPoint &) const |
ON_3dPoint | operator- (const ON_3fVector &) const |
ON_3dPoint & | operator-= (const ON_3dVector &) |
ON_3dPoint | operator/ (double) const |
ON_3dPoint | operator/ (float) const |
ON_3dPoint | operator/ (int) const |
ON_3dPoint & | operator/= (double) |
bool | operator< (const ON_3dPoint &) const |
ON_3dPoint & | operator= (const class ON_2fPoint &) |
ON_3dPoint & | operator= (const class ON_2fVector &) |
ON_3dPoint & | operator= (const class ON_3fPoint &) |
ON_3dPoint & | operator= (const class ON_3fVector &) |
ON_3dPoint & | operator= (const class ON_4fPoint &) |
ON_3dPoint & | operator= (const double *) |
point = double[3] support More... | |
ON_3dPoint & | operator= (const float *) |
point = float[3] support More... | |
ON_3dPoint & | operator= (const ON_2dPoint &) |
use implicit operator=(const ON_3dPoint&) More... | |
ON_3dPoint & | operator= (const ON_2dVector &) |
ON_3dPoint & | operator= (const ON_3dPoint &)=default |
ON_3dPoint & | operator= (const ON_3dVector &) |
ON_3dPoint & | operator= (const ON_4dPoint &) |
bool | operator== (const ON_3dPoint &) const |
bool | operator> (const ON_3dPoint &) const |
bool | operator>= (const ON_3dPoint &) const |
dictionary order comparisons bool operator<=(const ON_3dPoint&) const; More... | |
double & | operator[] (int) |
index operators mimic double[3] behavior More... | |
double | operator[] (int) const |
double & | operator[] (unsigned int) |
double | operator[] (unsigned int) const |
void | Rotate (double angle, const ON_3dVector &axis, const ON_3dPoint ¢er) |
void | Rotate (double sin_angle, double cos_angle, const ON_3dVector &axis, const ON_3dPoint ¢er) |
void | Set (double x, double y, double z) |
set 3d point value More... | |
void | Transform (const ON_Xform &) |
void | Zero () |
set all coordinates to zero; More... | |
Static Public Member Functions | |
static int | Compare (const ON_3dPoint &lhs, const ON_3dPoint &rhs) |
static const ON_3dPoint | Midpoint (const ON_3dPoint &A, const ON_3dPoint &B) |
Public Attributes | |
double | x |
double | y |
double | z |
Static Public Attributes | |
static const ON_3dPoint | NanPoint |
(ON_DBL_QNAN,ON_DBL_QNAN,ON_DBL_QNAN) More... | |
static const ON_3dPoint | Origin |
(0.0,0.0,0.0) More... | |
static const ON_3dPoint | UnsetPoint |
(ON_UNSET_VALUE,ON_UNSET_VALUE,ON_UNSET_VALUE) More... | |
|
default |
x,y,z not initialized
|
default |
|
default |
|
explicit |
ON_3dPoint::ON_3dPoint | ( | const ON_2dPoint & | ) |
from 2d point
|
explicit |
from 4d point - h.w must be non-zero
|
explicit |
from 2d vector
ON_3dPoint::ON_3dPoint | ( | const ON_3dVector & | ) |
from 3d vector
|
explicit |
from double[3] array
|
explicit |
from 2f point
ON_3dPoint::ON_3dPoint | ( | const class ON_3fPoint & | ) |
from 3f point
|
explicit |
from 4f point- h.w must be non-zero
|
explicit |
from 2f point
|
explicit |
from 3f point
|
explicit |
from float[3] array
|
static |
Description: A well ordered dictionary compare function that is nan aware and can be used for robust sorting.
ON__UINT32 ON_3dPoint::DataCRC | ( | ON__UINT32 | current_remainder | ) | const |
double ON_3dPoint::DistanceTo | ( | const ON_3dPoint & | ) | const |
double ON_3dPoint::DistanceToSquared | ( | const ON_3dPoint & | ) | const |
double ON_3dPoint::Fuzz | ( | double | tolerance = ON_ZERO_TOLERANCE | ) | const |
tolerance to use when comparing 3d points
bool ON_3dPoint::IsCoincident | ( | const ON_3dPoint & | P | ) | const |
In opennurbs points within ON_ZERO_TOLERANCE are generally considered to be the same. Returns: True if for each coordinate pair, |a-b| <= ON_ZERO_TOLERANCE or |a-b| <= (fabs(a)+fabs(b))*ON_RELATIVE_TOLERANCE.
bool ON_3dPoint::IsNan | ( | ) | const |
Returns: True if any coordinate is a nan.
bool ON_3dPoint::IsNotZero | ( | ) | const |
Returns: true if at lease one coordinate is not zero and no coordinates are unset or nans.
bool ON_3dPoint::IsUnset | ( | ) | const |
Returns: True if any coordinate is ON_UNSET_VALUE or ON_UNSET_POSITIVE_VALUE
bool ON_3dPoint::IsUnsetOrNan | ( | ) | const |
Returns: True if any coordinate is ON_UNSET_VALUE, ON_UNSET_POSITIVE_VALUE, or a nan
bool ON_3dPoint::IsValid | ( | ) | const |
Returns: False if any coordinate is infinite, a nan, or ON_UNSET_VALUE.
bool ON_3dPoint::IsZero | ( | ) | const |
Returns: true if all coordinates are not zero and no coordinates are nans. false otherwise.
double ON_3dPoint::MaximumCoordinate | ( | ) | const |
absolute value of maximum coordinate
int ON_3dPoint::MaximumCoordinateIndex | ( | ) | const |
|
static |
Returns: (A+B)/2 Remarks: Exact when coordinates are equal and prevents overflow.
double ON_3dPoint::MinimumCoordinate | ( | ) | const |
absolute value of minimum coordinate
int ON_3dPoint::MinimumCoordinateIndex | ( | ) | const |
ON_3dPoint::operator const double * | ( | ) | const |
ON_3dPoint::operator double * | ( | ) |
(double*) conversion operators
bool ON_3dPoint::operator!= | ( | const ON_3dPoint & | ) | const |
double ON_3dPoint::operator* | ( | const ON_3dPoint & | ) | const |
dot product for points acting as vectors
double ON_3dPoint::operator* | ( | const ON_3dVector & | ) | const |
dot product for points acting as vectors
ON_3dPoint ON_3dPoint::operator* | ( | const ON_Xform & | ) | const |
ON_3dPoint ON_3dPoint::operator* | ( | double | ) | const |
ON_3dPoint ON_3dPoint::operator* | ( | float | ) | const |
ON_3dPoint ON_3dPoint::operator* | ( | int | ) | const |
ON_3dPoint& ON_3dPoint::operator*= | ( | double | ) |
ON_3dPoint ON_3dPoint::operator+ | ( | const ON_2dPoint & | ) | const |
ON_3dPoint ON_3dPoint::operator+ | ( | const ON_2dVector & | ) | const |
ON_3dPoint ON_3dPoint::operator+ | ( | const ON_2fPoint & | ) | const |
ON_3dPoint ON_3dPoint::operator+ | ( | const ON_2fVector & | ) | const |
ON_3dPoint ON_3dPoint::operator+ | ( | const ON_3dPoint & | ) | const |
ON_3dPoint ON_3dPoint::operator+ | ( | const ON_3dVector & | ) | const |
ON_3dPoint ON_3dPoint::operator+ | ( | const ON_3fPoint & | ) | const |
ON_3dPoint ON_3dPoint::operator+ | ( | const ON_3fVector & | ) | const |
ON_3dPoint& ON_3dPoint::operator+= | ( | const ON_3dVector & | ) |
ON_3dVector ON_3dPoint::operator- | ( | const ON_2dPoint & | ) | const |
ON_3dPoint ON_3dPoint::operator- | ( | const ON_2dVector & | ) | const |
ON_3dVector ON_3dPoint::operator- | ( | const ON_2fPoint & | ) | const |
ON_3dPoint ON_3dPoint::operator- | ( | const ON_2fVector & | ) | const |
ON_3dVector ON_3dPoint::operator- | ( | const ON_3dPoint & | ) | const |
ON_3dPoint ON_3dPoint::operator- | ( | const ON_3dVector & | ) | const |
ON_3dVector ON_3dPoint::operator- | ( | const ON_3fPoint & | ) | const |
ON_3dPoint ON_3dPoint::operator- | ( | const ON_3fVector & | ) | const |
ON_3dPoint& ON_3dPoint::operator-= | ( | const ON_3dVector & | ) |
ON_3dPoint ON_3dPoint::operator/ | ( | double | ) | const |
ON_3dPoint ON_3dPoint::operator/ | ( | float | ) | const |
ON_3dPoint ON_3dPoint::operator/ | ( | int | ) | const |
ON_3dPoint& ON_3dPoint::operator/= | ( | double | ) |
bool ON_3dPoint::operator< | ( | const ON_3dPoint & | ) | const |
ON_3dPoint& ON_3dPoint::operator= | ( | const class ON_2fPoint & | ) |
ON_3dPoint& ON_3dPoint::operator= | ( | const class ON_2fVector & | ) |
ON_3dPoint& ON_3dPoint::operator= | ( | const class ON_3fPoint & | ) |
ON_3dPoint& ON_3dPoint::operator= | ( | const class ON_3fVector & | ) |
ON_3dPoint& ON_3dPoint::operator= | ( | const class ON_4fPoint & | ) |
ON_3dPoint& ON_3dPoint::operator= | ( | const double * | ) |
point = double[3] support
ON_3dPoint& ON_3dPoint::operator= | ( | const float * | ) |
point = float[3] support
ON_3dPoint& ON_3dPoint::operator= | ( | const ON_2dPoint & | ) |
use implicit operator=(const ON_3dPoint&)
ON_3dPoint& ON_3dPoint::operator= | ( | const ON_2dVector & | ) |
|
default |
ON_3dPoint& ON_3dPoint::operator= | ( | const ON_3dVector & | ) |
ON_3dPoint& ON_3dPoint::operator= | ( | const ON_4dPoint & | ) |
bool ON_3dPoint::operator== | ( | const ON_3dPoint & | ) | const |
bool ON_3dPoint::operator> | ( | const ON_3dPoint & | ) | const |
bool ON_3dPoint::operator>= | ( | const ON_3dPoint & | ) | const |
dictionary order comparisons bool operator<=(const ON_3dPoint&) const;
double& ON_3dPoint::operator[] | ( | int | ) |
index operators mimic double[3] behavior
double ON_3dPoint::operator[] | ( | int | ) | const |
double& ON_3dPoint::operator[] | ( | unsigned int | ) |
double ON_3dPoint::operator[] | ( | unsigned int | ) | const |
void ON_3dPoint::Rotate | ( | double | angle, |
const ON_3dVector & | axis, | ||
const ON_3dPoint & | center | ||
) |
angle | angle in radians |
axis | axis of rotation |
center | center of rotation |
void ON_3dPoint::Rotate | ( | double | sin_angle, |
double | cos_angle, | ||
const ON_3dVector & | axis, | ||
const ON_3dPoint & | center | ||
) |
sin_angle | sin(angle) |
cos_angle | cos(angle) |
axis | axis of rotation |
center | center of rotation |
void ON_3dPoint::Set | ( | double | x, |
double | y, | ||
double | z | ||
) |
set 3d point value
void ON_3dPoint::Transform | ( | const ON_Xform & | ) |
These transform the point in place. The transformation matrix acts on the left of the point; i.e., result = transformation*point
void ON_3dPoint::Zero | ( | ) |
set all coordinates to zero;
|
static |
(ON_DBL_QNAN,ON_DBL_QNAN,ON_DBL_QNAN)
|
static |
(0.0,0.0,0.0)
|
static |
(ON_UNSET_VALUE,ON_UNSET_VALUE,ON_UNSET_VALUE)
double ON_3dPoint::x |
double ON_3dPoint::y |
double ON_3dPoint::z |