Rhino C++ API
8.13
|
#include <opennurbs_fpoint.h>
Public Member Functions | |
ON_3fPoint ()=default | |
x,y,z not initialized More... | |
ON_3fPoint (const double *) | |
from double[3] array More... | |
ON_3fPoint (const float *) | |
from float[3] array More... | |
ON_3fPoint (const ON_2dPoint &) | |
from 2d point More... | |
ON_3fPoint (const ON_2dVector &) | |
from 2d vector More... | |
ON_3fPoint (const ON_2fPoint &) | |
from 2f point More... | |
ON_3fPoint (const ON_2fVector &) | |
from 2f vector More... | |
ON_3fPoint (const ON_3dPoint &) | |
from 3d point More... | |
ON_3fPoint (const ON_3dVector &) | |
from 3d vector More... | |
ON_3fPoint (const ON_3fPoint &)=default | |
ON_3fPoint (const ON_3fVector &) | |
from 3f vector More... | |
ON_3fPoint (const ON_4dPoint &) | |
from 4d point More... | |
ON_3fPoint (const ON_4fPoint &) | |
from 4f point More... | |
ON_3fPoint (float x, float y, float z) | |
~ON_3fPoint ()=default | |
ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const |
double | DistanceTo (const ON_3fPoint &) const |
double | DistanceToSquared (const ON_3fPoint &) const |
double | Fuzz (double=ON_ZERO_TOLERANCE) const |
tolerance to use when comparing 3d points More... | |
bool | IsNotZero () const |
bool | IsUnset () const |
bool | IsValid () const |
bool | IsZero () const |
double | MaximumCoordinate () const |
absolute value of maximum coordinate More... | |
int | MaximumCoordinateIndex () const |
operator const float * () const | |
operator float * () | |
(float*) conversion operators More... | |
bool | operator!= (const ON_3fPoint &) const |
float | operator* (const ON_3fPoint &) const |
for points acting as vectors More... | |
float | operator* (const ON_3fVector &) const |
for points acting as vectors More... | |
ON_3dPoint | operator* (double) const |
ON_3fPoint | operator* (float) const |
ON_3fPoint | operator* (int) const |
ON_3fPoint & | operator*= (float) |
ON_3dPoint | operator+ (const ON_2dPoint &) const |
ON_3dPoint | operator+ (const ON_2dVector &) const |
ON_3fPoint | operator+ (const ON_2fPoint &) const |
ON_3fPoint | operator+ (const ON_2fVector &) const |
ON_3dPoint | operator+ (const ON_3dPoint &) const |
ON_3dPoint | operator+ (const ON_3dVector &) const |
ON_3fPoint | operator+ (const ON_3fPoint &) const |
ON_3fPoint | operator+ (const ON_3fVector &) const |
ON_3fPoint & | operator+= (const ON_3fVector &) |
ON_3dVector | operator- (const ON_2dPoint &) const |
ON_3dPoint | operator- (const ON_2dVector &) const |
ON_3fVector | operator- (const ON_2fPoint &) const |
ON_3fPoint | operator- (const ON_2fVector &) const |
ON_3dVector | operator- (const ON_3dPoint &) const |
ON_3dPoint | operator- (const ON_3dVector &) const |
ON_3fVector | operator- (const ON_3fPoint &) const |
ON_3fPoint | operator- (const ON_3fVector &) const |
ON_3fPoint & | operator-= (const ON_3fVector &) |
ON_3dPoint | operator/ (double) const |
ON_3fPoint | operator/ (float) const |
ON_3fPoint | operator/ (int) const |
ON_3fPoint & | operator/= (float) |
bool | operator< (const ON_3fPoint &) const |
bool | operator<= (const ON_3fPoint &) const |
dictionary order comparisons More... | |
ON_3fPoint & | operator= (const double *) |
point = double[3] support More... | |
ON_3fPoint & | operator= (const float *) |
point = float[3] support More... | |
ON_3fPoint & | operator= (const ON_2dPoint &) |
ON_3fPoint & | operator= (const ON_2dVector &) |
ON_3fPoint & | operator= (const ON_2fPoint &) |
use implicit operator=(const ON_3fPoint&) More... | |
ON_3fPoint & | operator= (const ON_2fVector &) |
ON_3fPoint & | operator= (const ON_3dPoint &) |
ON_3fPoint & | operator= (const ON_3dVector &) |
ON_3fPoint & | operator= (const ON_3fPoint &)=default |
ON_3fPoint & | operator= (const ON_3fVector &) |
ON_3fPoint & | operator= (const ON_4dPoint &) |
ON_3fPoint & | operator= (const ON_4fPoint &) |
bool | operator== (const ON_3fPoint &) const |
bool | operator> (const ON_3fPoint &) const |
bool | operator>= (const ON_3fPoint &) const |
float & | operator[] (int) |
index operators mimic float[3] behavior More... | |
float | operator[] (int) const |
float & | operator[] (unsigned int) |
float | operator[] (unsigned int) const |
void | Rotate (double, const ON_3fVector &, const ON_3fPoint &) |
void | Rotate (double, double, const ON_3fVector &, const ON_3fPoint &) |
void | Set (float, float, float) |
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_3fPoint &lhs, const ON_3fPoint &rhs) |
static const ON_3fPoint | Midpoint (const ON_3fPoint &A, const ON_3fPoint &B) |
Public Attributes | |
float | x |
float | y |
float | z |
Static Public Attributes | |
static const ON_3fPoint | NanPoint |
(ON_FLT_QNAN,ON_FLT_QNAN,ON_FLT_QNAN) More... | |
static const ON_3fPoint | Origin |
(0.0f,0.0f,0.0f) More... | |
|
default |
x,y,z not initialized
|
default |
|
default |
|
explicit |
|
explicit |
from 2f point
|
explicit |
from 4f point
|
explicit |
from 2f vector
|
explicit |
from 3f vector
|
explicit |
from float[3] array
|
explicit |
from 2d point
|
explicit |
from 3d point
|
explicit |
from 4d point
|
explicit |
from 2d vector
|
explicit |
from 3d vector
|
explicit |
from double[3] array
|
static |
Description: A well ordered dictionary compare function that is nan aware and can be used for robust sorting.
ON__UINT32 ON_3fPoint::DataCRC | ( | ON__UINT32 | current_remainder | ) | const |
double ON_3fPoint::DistanceTo | ( | const ON_3fPoint & | ) | const |
double ON_3fPoint::DistanceToSquared | ( | const ON_3fPoint & | ) | const |
double ON_3fPoint::Fuzz | ( | double | = ON_ZERO_TOLERANCE | ) | const |
tolerance to use when comparing 3d points
bool ON_3fPoint::IsNotZero | ( | ) | const |
Returns: true if at lease one coordinate is not zero and no coordinates are unset or nans.
bool ON_3fPoint::IsUnset | ( | ) | const |
Returns: True if any coordinate is ON_UNSET_FLOAT or ON_UNSET_POSITIVE_FLOAT
bool ON_3fPoint::IsValid | ( | ) | const |
Returns: False if any coordinate is ON_UNSET_FLOAT, ON_UNSET_POSITIVE_FLOAT, nan, or infinite. True, otherwise.
bool ON_3fPoint::IsZero | ( | ) | const |
Returns: true if all coordinates are not zero and no coordinates are nans. false otherwise.
double ON_3fPoint::MaximumCoordinate | ( | ) | const |
absolute value of maximum coordinate
int ON_3fPoint::MaximumCoordinateIndex | ( | ) | const |
|
static |
Returns: (A+B)/2 Remarks: Exact when coordinates are equal and prevents overflow.
ON_3fPoint::operator const float * | ( | ) | const |
ON_3fPoint::operator float * | ( | ) |
(float*) conversion operators
bool ON_3fPoint::operator!= | ( | const ON_3fPoint & | ) | const |
float ON_3fPoint::operator* | ( | const ON_3fPoint & | ) | const |
for points acting as vectors
float ON_3fPoint::operator* | ( | const ON_3fVector & | ) | const |
for points acting as vectors
ON_3dPoint ON_3fPoint::operator* | ( | double | ) | const |
ON_3fPoint ON_3fPoint::operator* | ( | float | ) | const |
ON_3fPoint ON_3fPoint::operator* | ( | int | ) | const |
ON_3fPoint& ON_3fPoint::operator*= | ( | float | ) |
ON_3dPoint ON_3fPoint::operator+ | ( | const ON_2dPoint & | ) | const |
ON_3dPoint ON_3fPoint::operator+ | ( | const ON_2dVector & | ) | const |
ON_3fPoint ON_3fPoint::operator+ | ( | const ON_2fPoint & | ) | const |
ON_3fPoint ON_3fPoint::operator+ | ( | const ON_2fVector & | ) | const |
ON_3dPoint ON_3fPoint::operator+ | ( | const ON_3dPoint & | ) | const |
ON_3dPoint ON_3fPoint::operator+ | ( | const ON_3dVector & | ) | const |
ON_3fPoint ON_3fPoint::operator+ | ( | const ON_3fPoint & | ) | const |
ON_3fPoint ON_3fPoint::operator+ | ( | const ON_3fVector & | ) | const |
ON_3fPoint& ON_3fPoint::operator+= | ( | const ON_3fVector & | ) |
ON_3dVector ON_3fPoint::operator- | ( | const ON_2dPoint & | ) | const |
ON_3dPoint ON_3fPoint::operator- | ( | const ON_2dVector & | ) | const |
ON_3fVector ON_3fPoint::operator- | ( | const ON_2fPoint & | ) | const |
ON_3fPoint ON_3fPoint::operator- | ( | const ON_2fVector & | ) | const |
ON_3dVector ON_3fPoint::operator- | ( | const ON_3dPoint & | ) | const |
ON_3dPoint ON_3fPoint::operator- | ( | const ON_3dVector & | ) | const |
ON_3fVector ON_3fPoint::operator- | ( | const ON_3fPoint & | ) | const |
ON_3fPoint ON_3fPoint::operator- | ( | const ON_3fVector & | ) | const |
ON_3fPoint& ON_3fPoint::operator-= | ( | const ON_3fVector & | ) |
ON_3dPoint ON_3fPoint::operator/ | ( | double | ) | const |
ON_3fPoint ON_3fPoint::operator/ | ( | float | ) | const |
ON_3fPoint ON_3fPoint::operator/ | ( | int | ) | const |
ON_3fPoint& ON_3fPoint::operator/= | ( | float | ) |
bool ON_3fPoint::operator< | ( | const ON_3fPoint & | ) | const |
bool ON_3fPoint::operator<= | ( | const ON_3fPoint & | ) | const |
dictionary order comparisons
ON_3fPoint& ON_3fPoint::operator= | ( | const double * | ) |
point = double[3] support
ON_3fPoint& ON_3fPoint::operator= | ( | const float * | ) |
point = float[3] support
ON_3fPoint& ON_3fPoint::operator= | ( | const ON_2dPoint & | ) |
ON_3fPoint& ON_3fPoint::operator= | ( | const ON_2dVector & | ) |
ON_3fPoint& ON_3fPoint::operator= | ( | const ON_2fPoint & | ) |
use implicit operator=(const ON_3fPoint&)
ON_3fPoint& ON_3fPoint::operator= | ( | const ON_2fVector & | ) |
ON_3fPoint& ON_3fPoint::operator= | ( | const ON_3dPoint & | ) |
ON_3fPoint& ON_3fPoint::operator= | ( | const ON_3dVector & | ) |
|
default |
ON_3fPoint& ON_3fPoint::operator= | ( | const ON_3fVector & | ) |
ON_3fPoint& ON_3fPoint::operator= | ( | const ON_4dPoint & | ) |
ON_3fPoint& ON_3fPoint::operator= | ( | const ON_4fPoint & | ) |
bool ON_3fPoint::operator== | ( | const ON_3fPoint & | ) | const |
bool ON_3fPoint::operator> | ( | const ON_3fPoint & | ) | const |
bool ON_3fPoint::operator>= | ( | const ON_3fPoint & | ) | const |
float& ON_3fPoint::operator[] | ( | int | ) |
index operators mimic float[3] behavior
float ON_3fPoint::operator[] | ( | int | ) | const |
float& ON_3fPoint::operator[] | ( | unsigned int | ) |
float ON_3fPoint::operator[] | ( | unsigned int | ) | const |
void ON_3fPoint::Rotate | ( | double | , |
const ON_3fVector & | , | ||
const ON_3fPoint & | |||
) |
void ON_3fPoint::Rotate | ( | double | , |
double | , | ||
const ON_3fVector & | , | ||
const ON_3fPoint & | |||
) |
void ON_3fPoint::Set | ( | float | , |
float | , | ||
float | |||
) |
set 3d point value
void ON_3fPoint::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_3fPoint::Zero | ( | ) |
set all coordinates to zero;
|
static |
(ON_FLT_QNAN,ON_FLT_QNAN,ON_FLT_QNAN)
|
static |
(0.0f,0.0f,0.0f)
float ON_3fPoint::x |
float ON_3fPoint::y |
float ON_3fPoint::z |