#include <opennurbs_fpoint.h>
Public Member Functions | |
ON_4fPoint ()=default | |
x,y,z,w not initialized More... | |
ON_4fPoint (const ON_4fPoint &)=default | |
ON_4fPoint (float x, float y, float z, float w) | |
ON_4fPoint (const ON_2fPoint &) | |
ON_4fPoint (const ON_3fPoint &) | |
ON_4fPoint (const ON_2fVector &) | |
ON_4fPoint (const ON_3fVector &) | |
ON_4fPoint (const float *) | |
Require explicit construction when dev must insure array has length >= 4. More... | |
ON_4fPoint (const ON_2dPoint &) | |
Require explicit construction when loosing precision. More... | |
ON_4fPoint (const ON_3dPoint &) | |
ON_4fPoint (const ON_4dPoint &) | |
ON_4fPoint (const ON_2dVector &) | |
ON_4fPoint (const ON_3dVector &) | |
ON_4fPoint (const double *) | |
~ON_4fPoint ()=default | |
ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const |
float | EuclideanX () const |
float | EuclideanY () const |
float | EuclideanZ () const |
bool | IsUnset () const |
bool | IsValid () const |
double | MaximumCoordinate () const |
int | MaximumCoordinateIndex () const |
bool | Normalize () |
operator const float * () const | |
operator float * () | |
(float*) conversion operators More... | |
bool | operator!= (const ON_4fPoint &rhs) const |
ON_4fPoint | operator* (float) const |
ON_4fPoint & | operator*= (float) |
ON_4fPoint | operator+ (const ON_4fPoint &) const |
ON_4fPoint & | operator+= (const ON_4fPoint &) |
ON_4fPoint | operator- (const ON_4fPoint &) const |
ON_4fPoint & | operator-= (const ON_4fPoint &) |
ON_4fPoint | operator/ (float) const |
ON_4fPoint & | operator/= (float) |
ON_4fPoint & | operator= (const ON_4fPoint &)=default |
ON_4fPoint & | operator= (const ON_2fPoint &) |
use implicit operator=(const ON_4fPoint&) More... | |
ON_4fPoint & | operator= (const ON_3fPoint &) |
ON_4fPoint & | operator= (const ON_2fVector &) |
ON_4fPoint & | operator= (const ON_3fVector &) |
ON_4fPoint & | operator= (const float *) |
ON_4fPoint & | operator= (const ON_2dPoint &) |
ON_4fPoint & | operator= (const ON_3dPoint &) |
ON_4fPoint & | operator= (const ON_4dPoint &) |
ON_4fPoint & | operator= (const ON_2dVector &) |
ON_4fPoint & | operator= (const ON_3dVector &) |
ON_4fPoint & | operator= (const double *) |
bool | operator== (const ON_4fPoint &rhs) const |
float & | operator[] (int) |
index operators mimic float[4] behavior More... | |
float | operator[] (int) const |
float & | operator[] (unsigned int) |
float | operator[] (unsigned int) const |
void | Set (float, float, float, float) |
set 4d point value More... | |
void | Transform (const ON_Xform &) |
Static Public Member Functions | |
static int | DictionaryCompare (const ON_4fPoint &lhs, const ON_4fPoint &rhs) |
A well ordered dictionary compare function that is nan aware and can be used for robust sorting. More... | |
static int | ProjectiveCompare (const ON_4fPoint &lhs, const ON_4fPoint &rhs) |
A well ordered projective compare function that is nan aware and can be used for robust sorting. More... | |
Public Attributes | |
float | w |
float | x |
float | y |
float | z |
Static Public Attributes | |
static const ON_4fPoint | Nan |
static const ON_4fPoint | Zero |
|
default |
x,y,z,w not initialized
|
default |
|
default |
|
explicit |
ON_4fPoint::ON_4fPoint | ( | const ON_2fPoint & | ) |
ON_4fPoint::ON_4fPoint | ( | const ON_3fPoint & | ) |
ON_4fPoint::ON_4fPoint | ( | const ON_2fVector & | ) |
ON_4fPoint::ON_4fPoint | ( | const ON_3fVector & | ) |
|
explicit |
Require explicit construction when dev must insure array has length >= 4.
|
explicit |
Require explicit construction when loosing precision.
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
ON__UINT32 ON_4fPoint::DataCRC | ( | ON__UINT32 | current_remainder | ) | const |
|
static |
A well ordered dictionary compare function that is nan aware and can be used for robust sorting.
float ON_4fPoint::EuclideanX | ( | ) | const |
If w is 0.0 or nan, the result will be a nan.
float ON_4fPoint::EuclideanY | ( | ) | const |
If w is 0.0 or nan, the result will be a nan.
float ON_4fPoint::EuclideanZ | ( | ) | const |
If w is 0.0 or nan, the result will be a nan.
bool ON_4fPoint::IsUnset | ( | ) | const |
bool ON_4fPoint::IsValid | ( | ) | const |
double ON_4fPoint::MaximumCoordinate | ( | ) | const |
int ON_4fPoint::MaximumCoordinateIndex | ( | ) | const |
bool ON_4fPoint::Normalize | ( | ) |
ON_4fPoint::operator const float * | ( | ) | const |
ON_4fPoint::operator float * | ( | ) |
(float*) conversion operators
bool ON_4fPoint::operator!= | ( | const ON_4fPoint & | rhs | ) | const |
ON_4fPoint ON_4fPoint::operator* | ( | float | ) | const |
ON_4fPoint& ON_4fPoint::operator*= | ( | float | ) |
ON_4fPoint ON_4fPoint::operator+ | ( | const ON_4fPoint & | ) | const |
ON_4fPoint& ON_4fPoint::operator+= | ( | const ON_4fPoint & | ) |
ON_4fPoint ON_4fPoint::operator- | ( | const ON_4fPoint & | ) | const |
ON_4fPoint& ON_4fPoint::operator-= | ( | const ON_4fPoint & | ) |
ON_4fPoint ON_4fPoint::operator/ | ( | float | ) | const |
ON_4fPoint& ON_4fPoint::operator/= | ( | float | ) |
|
default |
ON_4fPoint& ON_4fPoint::operator= | ( | const ON_2fPoint & | ) |
use implicit operator=(const ON_4fPoint&)
ON_4fPoint& ON_4fPoint::operator= | ( | const ON_3fPoint & | ) |
ON_4fPoint& ON_4fPoint::operator= | ( | const ON_2fVector & | ) |
ON_4fPoint& ON_4fPoint::operator= | ( | const ON_3fVector & | ) |
ON_4fPoint& ON_4fPoint::operator= | ( | const float * | ) |
ON_4fPoint& ON_4fPoint::operator= | ( | const ON_2dPoint & | ) |
ON_4fPoint& ON_4fPoint::operator= | ( | const ON_3dPoint & | ) |
ON_4fPoint& ON_4fPoint::operator= | ( | const ON_4dPoint & | ) |
ON_4fPoint& ON_4fPoint::operator= | ( | const ON_2dVector & | ) |
ON_4fPoint& ON_4fPoint::operator= | ( | const ON_3dVector & | ) |
ON_4fPoint& ON_4fPoint::operator= | ( | const double * | ) |
bool ON_4fPoint::operator== | ( | const ON_4fPoint & | rhs | ) | const |
float& ON_4fPoint::operator[] | ( | int | ) |
index operators mimic float[4] behavior
float ON_4fPoint::operator[] | ( | int | ) | const |
float& ON_4fPoint::operator[] | ( | unsigned | int | ) |
float ON_4fPoint::operator[] | ( | unsigned | int | ) | const |
|
static |
A well ordered projective compare function that is nan aware and can be used for robust sorting.
float c = non-nan value. ON_4fPoint h0 = ...; ON_4fPoint h1(c*h0.x,c*h0.x,c*h0.x,c*h0.x); 0 == ON_4fPoint::ProjectiveCompare(h0,ha);
void ON_4fPoint::Set | ( | float | , |
float | , | ||
float | , | ||
float | |||
) |
set 4d point value
void ON_4fPoint::Transform | ( | const ON_Xform & | ) |
|
static |
float ON_4fPoint::w |
float ON_4fPoint::x |
float ON_4fPoint::y |
float ON_4fPoint::z |
|
static |