#include <opennurbs_point.h>
Public Member Functions | |
ON_2dVector ()=default | |
x,y not initialized More... | |
ON_2dVector (const ON_2dVector &)=default | |
ON_2dVector (double x, double y) | |
ON_2dVector (const ON_3dVector &) | |
ON_2dVector (const ON_2dPoint &) | |
ON_2dVector (const ON_3dPoint &) | |
ON_2dVector (const double *) | |
ON_2dVector (const ON_2fVector &) | |
ON_2dVector (const ON_3fVector &) | |
ON_2dVector (const ON_2fPoint &) | |
ON_2dVector (const ON_3fPoint &) | |
ON_2dVector (const float *) | |
~ON_2dVector ()=default | |
ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const |
bool | Decompose (const ON_2dVector &, const ON_2dVector &, double *, double *) const |
bool | IsNotZero () const |
int | IsParallelTo (const ON_2dVector &other, double angle_tolerance=ON_DEFAULT_ANGLE_TOLERANCE) const |
bool | IsPerpendicularTo (const ON_2dVector &other, double angle_tolerance=ON_DEFAULT_ANGLE_TOLERANCE) const |
bool | IsTiny (double tiny_tol=ON_ZERO_TOLERANCE) const |
Test a vector to see if it is very short More... | |
bool | IsUnitVector () const |
bool | IsUnset () const |
bool | IsValid () const |
bool | IsZero () const |
double | Length () const |
double | LengthSquared () const |
double | MaximumCoordinate () const |
int | MaximumCoordinateIndex () const |
double | MinimumCoordinate () const |
int | MinimumCoordinateIndex () const |
operator const double * () const | |
operator double * () | |
(double*) conversion operators More... | |
bool | operator!= (const ON_2dVector &) const |
double | operator* (const ON_2dVector &) const |
DO NOT ADD ANY MORE overrides of += or -=. More... | |
double | operator* (const ON_2dPoint &) const |
double | operator* (const ON_2fVector &) const |
ON_2dVector | operator* (int) const |
ON_2dVector | operator* (float) const |
ON_2dVector | operator* (double) const |
ON_2dVector | operator* (const ON_Xform &) const |
ON_2dVector & | operator*= (double) |
ON_2dVector | operator+ (const ON_2dVector &) const |
ON_2dPoint | operator+ (const ON_2dPoint &) const |
ON_3dVector | operator+ (const ON_3dVector &) const |
ON_3dPoint | operator+ (const ON_3dPoint &) const |
ON_2dVector | operator+ (const ON_2fVector &) const |
ON_2dPoint | operator+ (const ON_2fPoint &) const |
ON_3dVector | operator+ (const ON_3fVector &) const |
ON_3dPoint | operator+ (const ON_3fPoint &) const |
ON_2dVector & | operator+= (const ON_2dVector &) |
ON_2dVector | operator- () const |
ON_2dVector | operator- (const ON_2dVector &) const |
ON_2dPoint | operator- (const ON_2dPoint &) const |
ON_3dVector | operator- (const ON_3dVector &) const |
ON_3dPoint | operator- (const ON_3dPoint &) const |
ON_2dVector | operator- (const ON_2fVector &) const |
ON_2dPoint | operator- (const ON_2fPoint &) const |
ON_3dVector | operator- (const ON_3fVector &) const |
ON_3dPoint | operator- (const ON_3fPoint &) const |
ON_2dVector & | operator-= (const ON_2dVector &) |
ON_2dVector | operator/ (int) const |
ON_2dVector | operator/ (float) const |
ON_2dVector | operator/ (double) const |
ON_2dVector & | operator/= (double) |
bool | operator< (const ON_2dVector &) const |
bool | operator<= (const ON_2dVector &) const |
dictionary order comparisons More... | |
ON_2dVector & | operator= (const ON_2dVector &)=default |
ON_2dVector & | operator= (const ON_3dVector &) |
use implicit operator=(const ON_2dVector&) More... | |
ON_2dVector & | operator= (const ON_2dPoint &) |
ON_2dVector & | operator= (const ON_3dPoint &) |
ON_2dVector & | operator= (const double *) |
ON_2dVector & | operator= (const ON_2fVector &) |
ON_2dVector & | operator= (const ON_3fVector &) |
ON_2dVector & | operator= (const ON_2fPoint &) |
ON_2dVector & | operator= (const ON_3fPoint &) |
ON_2dVector & | operator= (const float *) |
bool | operator== (const ON_2dVector &) const |
bool | operator> (const ON_2dVector &) const |
bool | operator>= (const ON_2dVector &) const |
double & | operator[] (int) |
index operators mimic double[2] behavior More... | |
double | operator[] (int) const |
double & | operator[] (unsigned int) |
double | operator[] (unsigned int) const |
bool | PerpendicularTo (const ON_2dVector &) |
set this vector to be perpendicular to another vector More... | |
bool | PerpendicularTo (const ON_2dPoint &, const ON_2dPoint &) |
set this vector to be perpendicular to a line defined by 2 points More... | |
void | Reverse () |
void | Rotate (double angle) |
void | Rotate (double sin_angle, double cos_angle) |
void | Set (double x, double y) |
set 2d vector value More... | |
void | Transform (const ON_Xform &) |
bool | Unitize () |
ON_2dVector | UnitVector () const |
double | WedgeProduct (const ON_2dVector &B) const |
void | Zero () |
Static Public Member Functions | |
static int | Compare (const ON_2dVector &lhs, const ON_2dVector &rhs) |
A well ordered dictionary compare function that is nan aware and can be used for robust sorting. More... | |
static const ON_2dVector & | UnitVector (int) |
A index driven function to get unit axis vectors. More... | |
Public Attributes | |
double | x |
double | y |
Static Public Attributes | |
static const ON_2dVector | NanVector |
static const ON_2dVector | UnsetVector |
static const ON_2dVector | XAxis |
static const ON_2dVector | YAxis |
static const ON_2dVector | ZeroVector |
|
default |
x,y not initialized
|
default |
|
default |
|
explicit |
|
explicit |
ON_2dVector::ON_2dVector | ( | const ON_2dPoint & | ) |
|
explicit |
|
explicit |
ON_2dVector::ON_2dVector | ( | const ON_2fVector & | ) |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
static |
A well ordered dictionary compare function that is nan aware and can be used for robust sorting.
ON__UINT32 ON_2dVector::DataCRC | ( | ON__UINT32 | current_remainder | ) | const |
bool ON_2dVector::Decompose | ( | const ON_2dVector & | , |
const ON_2dVector & | , | ||
double * | , | ||
double * | |||
) | const |
bool ON_2dVector::IsNotZero | ( | ) | const |
int ON_2dVector::IsParallelTo | ( | const ON_2dVector & | other, |
double | angle_tolerance = ON_DEFAULT_ANGLE_TOLERANCE |
||
) | const |
bool ON_2dVector::IsPerpendicularTo | ( | const ON_2dVector & | other, |
double | angle_tolerance = ON_DEFAULT_ANGLE_TOLERANCE |
||
) | const |
bool ON_2dVector::IsTiny | ( | double | tiny_tol = ON_ZERO_TOLERANCE | ) | const |
Test a vector to see if it is very short
tiny_tol | [in] (default = ON_ZERO_TOLERANCE) a nonzero value used as the coordinate zero tolerance. |
( fabs(x) <= tiny_tol && fabs(y) <= tiny_tol )
bool ON_2dVector::IsUnitVector | ( | ) | const |
bool ON_2dVector::IsUnset | ( | ) | const |
bool ON_2dVector::IsValid | ( | ) | const |
bool ON_2dVector::IsZero | ( | ) | const |
double ON_2dVector::Length | ( | ) | const |
double ON_2dVector::LengthSquared | ( | ) | const |
double ON_2dVector::MaximumCoordinate | ( | ) | const |
int ON_2dVector::MaximumCoordinateIndex | ( | ) | const |
double ON_2dVector::MinimumCoordinate | ( | ) | const |
int ON_2dVector::MinimumCoordinateIndex | ( | ) | const |
ON_2dVector::operator const double * | ( | ) | const |
ON_2dVector::operator double * | ( | ) |
(double*) conversion operators
bool ON_2dVector::operator!= | ( | const ON_2dVector & | ) | const |
double ON_2dVector::operator* | ( | const ON_2dVector & | ) | const |
DO NOT ADD ANY MORE overrides of += or -=.
double ON_2dVector::operator* | ( | const ON_2dPoint & | ) | const |
double ON_2dVector::operator* | ( | const ON_2fVector & | ) | const |
ON_2dVector ON_2dVector::operator* | ( | int | ) | const |
ON_2dVector ON_2dVector::operator* | ( | float | ) | const |
ON_2dVector ON_2dVector::operator* | ( | double | ) | const |
ON_2dVector ON_2dVector::operator* | ( | const ON_Xform & | ) | const |
ON_2dVector& ON_2dVector::operator*= | ( | double | ) |
ON_2dVector ON_2dVector::operator+ | ( | const ON_2dVector & | ) | const |
ON_2dPoint ON_2dVector::operator+ | ( | const ON_2dPoint & | ) | const |
ON_3dVector ON_2dVector::operator+ | ( | const ON_3dVector & | ) | const |
ON_3dPoint ON_2dVector::operator+ | ( | const ON_3dPoint & | ) | const |
ON_2dVector ON_2dVector::operator+ | ( | const ON_2fVector & | ) | const |
ON_2dPoint ON_2dVector::operator+ | ( | const ON_2fPoint & | ) | const |
ON_3dVector ON_2dVector::operator+ | ( | const ON_3fVector & | ) | const |
ON_3dPoint ON_2dVector::operator+ | ( | const ON_3fPoint & | ) | const |
ON_2dVector& ON_2dVector::operator+= | ( | const ON_2dVector & | ) |
ON_2dVector ON_2dVector::operator- | ( | ) | const |
ON_2dVector ON_2dVector::operator- | ( | const ON_2dVector & | ) | const |
ON_2dPoint ON_2dVector::operator- | ( | const ON_2dPoint & | ) | const |
ON_3dVector ON_2dVector::operator- | ( | const ON_3dVector & | ) | const |
ON_3dPoint ON_2dVector::operator- | ( | const ON_3dPoint & | ) | const |
ON_2dVector ON_2dVector::operator- | ( | const ON_2fVector & | ) | const |
ON_2dPoint ON_2dVector::operator- | ( | const ON_2fPoint & | ) | const |
ON_3dVector ON_2dVector::operator- | ( | const ON_3fVector & | ) | const |
ON_3dPoint ON_2dVector::operator- | ( | const ON_3fPoint & | ) | const |
ON_2dVector& ON_2dVector::operator-= | ( | const ON_2dVector & | ) |
ON_2dVector ON_2dVector::operator/ | ( | int | ) | const |
ON_2dVector ON_2dVector::operator/ | ( | float | ) | const |
ON_2dVector ON_2dVector::operator/ | ( | double | ) | const |
ON_2dVector& ON_2dVector::operator/= | ( | double | ) |
bool ON_2dVector::operator< | ( | const ON_2dVector & | ) | const |
bool ON_2dVector::operator<= | ( | const ON_2dVector & | ) | const |
dictionary order comparisons
|
default |
ON_2dVector& ON_2dVector::operator= | ( | const ON_3dVector & | ) |
use implicit operator=(const ON_2dVector&)
ON_2dVector& ON_2dVector::operator= | ( | const ON_2dPoint & | ) |
ON_2dVector& ON_2dVector::operator= | ( | const ON_3dPoint & | ) |
ON_2dVector& ON_2dVector::operator= | ( | const double * | ) |
ON_2dVector& ON_2dVector::operator= | ( | const ON_2fVector & | ) |
ON_2dVector& ON_2dVector::operator= | ( | const ON_3fVector & | ) |
ON_2dVector& ON_2dVector::operator= | ( | const ON_2fPoint & | ) |
ON_2dVector& ON_2dVector::operator= | ( | const ON_3fPoint & | ) |
ON_2dVector& ON_2dVector::operator= | ( | const float * | ) |
bool ON_2dVector::operator== | ( | const ON_2dVector & | ) | const |
bool ON_2dVector::operator> | ( | const ON_2dVector & | ) | const |
bool ON_2dVector::operator>= | ( | const ON_2dVector & | ) | const |
double& ON_2dVector::operator[] | ( | int | ) |
index operators mimic double[2] behavior
double ON_2dVector::operator[] | ( | int | ) | const |
double& ON_2dVector::operator[] | ( | unsigned | int | ) |
double ON_2dVector::operator[] | ( | unsigned | int | ) | const |
bool ON_2dVector::PerpendicularTo | ( | const ON_2dVector & | ) |
set this vector to be perpendicular to another vector
bool ON_2dVector::PerpendicularTo | ( | const ON_2dPoint & | , |
const ON_2dPoint & | |||
) |
set this vector to be perpendicular to a line defined by 2 points
void ON_2dVector::Reverse | ( | ) |
void ON_2dVector::Rotate | ( | double | angle | ) |
void ON_2dVector::Rotate | ( | double | sin_angle, |
double | cos_angle | ||
) |
void ON_2dVector::Set | ( | double | x, |
double | y | ||
) |
set 2d vector value
void ON_2dVector::Transform | ( | const ON_Xform & | ) |
bool ON_2dVector::Unitize | ( | ) |
|
static |
A index driven function to get unit axis vectors.
index | [in] 0 returns (1,0), 1 returns (0,1) |
ON_2dVector ON_2dVector::UnitVector | ( | ) | const |
double ON_2dVector::WedgeProduct | ( | const ON_2dVector & | B | ) | const |
void ON_2dVector::Zero | ( | ) |
|
static |
|
static |
double ON_2dVector::x |
|
static |
double ON_2dVector::y |
|
static |
|
static |