#include <opennurbs_fpoint.h>
Public Member Functions | |
| ON_2fVector ()=default | |
| x,y not initialized  More... | |
| ON_2fVector (const ON_2fVector &)=default | |
| ON_2fVector (float x, float y) | |
| ON_2fVector (const ON_2fPoint &) | |
| ON_2fVector (const ON_3fPoint &) | |
| ON_2fVector (const ON_3fVector &) | |
| ON_2fVector (const float *) | |
| ON_2fVector (const ON_2dPoint &) | |
| ON_2fVector (const ON_3dPoint &) | |
| ON_2fVector (const ON_2dVector &) | |
| ON_2fVector (const ON_3dVector &) | |
| ON_2fVector (const double *) | |
| ~ON_2fVector ()=default | |
| ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const | 
| bool | Decompose (const ON_2fVector &, const ON_2fVector &, double *, double *) const | 
| bool | IsNotZero () const | 
| int | IsParallelTo (const ON_2fVector &, double=ON_DEFAULT_ANGLE_TOLERANCE) const | 
| bool | IsPerpendicularTo (const ON_2fVector &, double=ON_DEFAULT_ANGLE_TOLERANCE) const | 
| bool | IsTiny (double=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 | 
| operator const float * () const | |
| operator float * () | |
| (float*) conversion operators  More... | |
| bool | operator!= (const ON_2fVector &) const | 
| float | operator* (const ON_2fVector &) const | 
| float | operator* (const ON_2fPoint &) const | 
| double | operator* (const ON_2dVector &) const | 
| ON_2fVector | operator* (int) const | 
| ON_2fVector | operator* (float) const | 
| ON_2dVector | operator* (double) const | 
| ON_2fVector & | operator*= (float) | 
| ON_2fVector | operator+ (const ON_2fVector &) const | 
| ON_2fPoint | operator+ (const ON_2fPoint &) const | 
| ON_3fVector | operator+ (const ON_3fVector &) const | 
| ON_3fPoint | operator+ (const ON_3fPoint &) 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_2fVector & | operator+= (const ON_2fVector &) | 
| ON_2fVector | operator- () const | 
| ON_2fVector | operator- (const ON_2fVector &) const | 
| ON_2fPoint | operator- (const ON_2fPoint &) const | 
| ON_3fVector | operator- (const ON_3fVector &) const | 
| ON_3fPoint | operator- (const ON_3fPoint &) 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_2fVector & | operator-= (const ON_2fVector &) | 
| ON_2fVector | operator/ (int) const | 
| ON_2fVector | operator/ (float) const | 
| ON_2dVector | operator/ (double) const | 
| ON_2fVector & | operator/= (float) | 
| bool | operator< (const ON_2fVector &) const | 
| bool | operator<= (const ON_2fVector &) const | 
| dictionary order comparisons  More... | |
| ON_2fVector & | operator= (const ON_2fVector &)=default | 
| ON_2fVector & | operator= (const ON_2fPoint &) | 
| use implicit operator=(const ON_2fVector&)  More... | |
| ON_2fVector & | operator= (const ON_3fPoint &) | 
| ON_2fVector & | operator= (const ON_3fVector &) | 
| ON_2fVector & | operator= (const float *) | 
| ON_2fVector & | operator= (const ON_2dPoint &) | 
| ON_2fVector & | operator= (const ON_3dPoint &) | 
| ON_2fVector & | operator= (const ON_2dVector &) | 
| ON_2fVector & | operator= (const ON_3dVector &) | 
| ON_2fVector & | operator= (const double *) | 
| bool | operator== (const ON_2fVector &) const | 
| bool | operator> (const ON_2fVector &) const | 
| bool | operator>= (const ON_2fVector &) const | 
| float & | operator[] (int) | 
| index operators mimic float[2] behavior  More... | |
| float | operator[] (int) const | 
| float & | operator[] (unsigned int) | 
| float | operator[] (unsigned int) const | 
| bool | PerpendicularTo (const ON_2fVector &) | 
| set this vector to be perpendicular to another vector  More... | |
| bool | PerpendicularTo (const ON_2fPoint &, const ON_2fPoint &) | 
| set this vector to be perpendicular to a line defined by 2 points  More... | |
| void | Reverse () | 
| void | Set (float, float) | 
| set 2d vector value  More... | |
| bool | Unitize () | 
| ON_2fVector | UnitVector () const | 
| void | Zero () | 
Static Public Member Functions | |
| static int | Compare (const ON_2fVector &lhs, const ON_2fVector &rhs) | 
| A well ordered dictionary compare function that is nan aware and can be used for robust sorting.  More... | |
| static const ON_2fVector & | UnitVector (int) | 
| A index driven function to get unit axis vectors.  More... | |
Public Attributes | |
| float | x | 
| float | y | 
Static Public Attributes | |
| static const ON_2fVector | NanVector | 
| static const ON_2fVector | XAxis | 
| static const ON_2fVector | YAxis | 
| static const ON_2fVector | ZeroVector | 
      
  | 
  default | 
x,y not initialized
      
  | 
  default | 
      
  | 
  default | 
      
  | 
  explicit | 
      
  | 
  explicit | 
      
  | 
  explicit | 
      
  | 
  explicit | 
      
  | 
  explicit | 
      
  | 
  explicit | 
      
  | 
  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_2fVector::DataCRC | ( | ON__UINT32 | current_remainder | ) | const | 
| bool ON_2fVector::Decompose | ( | const ON_2fVector & | , | 
| const ON_2fVector & | , | ||
| double * | , | ||
| double * | |||
| ) | const | 
| bool ON_2fVector::IsNotZero | ( | ) | const | 
| int ON_2fVector::IsParallelTo | ( | const ON_2fVector & | , | 
| double |  = ON_DEFAULT_ANGLE_TOLERANCE  | 
        ||
| ) | const | 
| bool ON_2fVector::IsPerpendicularTo | ( | const ON_2fVector & | , | 
| double |  = ON_DEFAULT_ANGLE_TOLERANCE  | 
        ||
| ) | const | 
| bool ON_2fVector::IsTiny | ( | double |  = 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_2fVector::IsUnitVector | ( | ) | const | 
| bool ON_2fVector::IsUnset | ( | ) | const | 
| bool ON_2fVector::IsValid | ( | ) | const | 
| bool ON_2fVector::IsZero | ( | ) | const | 
| double ON_2fVector::Length | ( | ) | const | 
| double ON_2fVector::LengthSquared | ( | ) | const | 
| double ON_2fVector::MaximumCoordinate | ( | ) | const | 
| int ON_2fVector::MaximumCoordinateIndex | ( | ) | const | 
| ON_2fVector::operator const float * | ( | ) | const | 
| ON_2fVector::operator float * | ( | ) | 
(float*) conversion operators
| bool ON_2fVector::operator!= | ( | const ON_2fVector & | ) | const | 
| float ON_2fVector::operator* | ( | const ON_2fVector & | ) | const | 
| float ON_2fVector::operator* | ( | const ON_2fPoint & | ) | const | 
| double ON_2fVector::operator* | ( | const ON_2dVector & | ) | const | 
| ON_2fVector ON_2fVector::operator* | ( | int | ) | const | 
| ON_2fVector ON_2fVector::operator* | ( | float | ) | const | 
| ON_2dVector ON_2fVector::operator* | ( | double | ) | const | 
| ON_2fVector& ON_2fVector::operator*= | ( | float | ) | 
| ON_2fVector ON_2fVector::operator+ | ( | const ON_2fVector & | ) | const | 
| ON_2fPoint ON_2fVector::operator+ | ( | const ON_2fPoint & | ) | const | 
| ON_3fVector ON_2fVector::operator+ | ( | const ON_3fVector & | ) | const | 
| ON_3fPoint ON_2fVector::operator+ | ( | const ON_3fPoint & | ) | const | 
| ON_2dVector ON_2fVector::operator+ | ( | const ON_2dVector & | ) | const | 
| ON_2dPoint ON_2fVector::operator+ | ( | const ON_2dPoint & | ) | const | 
| ON_3dVector ON_2fVector::operator+ | ( | const ON_3dVector & | ) | const | 
| ON_3dPoint ON_2fVector::operator+ | ( | const ON_3dPoint & | ) | const | 
| ON_2fVector& ON_2fVector::operator+= | ( | const ON_2fVector & | ) | 
| ON_2fVector ON_2fVector::operator- | ( | ) | const | 
| ON_2fVector ON_2fVector::operator- | ( | const ON_2fVector & | ) | const | 
| ON_2fPoint ON_2fVector::operator- | ( | const ON_2fPoint & | ) | const | 
| ON_3fVector ON_2fVector::operator- | ( | const ON_3fVector & | ) | const | 
| ON_3fPoint ON_2fVector::operator- | ( | const ON_3fPoint & | ) | const | 
| ON_2dVector ON_2fVector::operator- | ( | const ON_2dVector & | ) | const | 
| ON_2dPoint ON_2fVector::operator- | ( | const ON_2dPoint & | ) | const | 
| ON_3dVector ON_2fVector::operator- | ( | const ON_3dVector & | ) | const | 
| ON_3dPoint ON_2fVector::operator- | ( | const ON_3dPoint & | ) | const | 
| ON_2fVector& ON_2fVector::operator-= | ( | const ON_2fVector & | ) | 
| ON_2fVector ON_2fVector::operator/ | ( | int | ) | const | 
| ON_2fVector ON_2fVector::operator/ | ( | float | ) | const | 
| ON_2dVector ON_2fVector::operator/ | ( | double | ) | const | 
| ON_2fVector& ON_2fVector::operator/= | ( | float | ) | 
| bool ON_2fVector::operator< | ( | const ON_2fVector & | ) | const | 
| bool ON_2fVector::operator<= | ( | const ON_2fVector & | ) | const | 
dictionary order comparisons
      
  | 
  default | 
| ON_2fVector& ON_2fVector::operator= | ( | const ON_2fPoint & | ) | 
use implicit operator=(const ON_2fVector&)
| ON_2fVector& ON_2fVector::operator= | ( | const ON_3fPoint & | ) | 
| ON_2fVector& ON_2fVector::operator= | ( | const ON_3fVector & | ) | 
| ON_2fVector& ON_2fVector::operator= | ( | const float * | ) | 
| ON_2fVector& ON_2fVector::operator= | ( | const ON_2dPoint & | ) | 
| ON_2fVector& ON_2fVector::operator= | ( | const ON_3dPoint & | ) | 
| ON_2fVector& ON_2fVector::operator= | ( | const ON_2dVector & | ) | 
| ON_2fVector& ON_2fVector::operator= | ( | const ON_3dVector & | ) | 
| ON_2fVector& ON_2fVector::operator= | ( | const double * | ) | 
| bool ON_2fVector::operator== | ( | const ON_2fVector & | ) | const | 
| bool ON_2fVector::operator> | ( | const ON_2fVector & | ) | const | 
| bool ON_2fVector::operator>= | ( | const ON_2fVector & | ) | const | 
| float& ON_2fVector::operator[] | ( | int | ) | 
index operators mimic float[2] behavior
| float ON_2fVector::operator[] | ( | int | ) | const | 
| float& ON_2fVector::operator[] | ( | unsigned | int | ) | 
| float ON_2fVector::operator[] | ( | unsigned | int | ) | const | 
| bool ON_2fVector::PerpendicularTo | ( | const ON_2fVector & | ) | 
set this vector to be perpendicular to another vector
| bool ON_2fVector::PerpendicularTo | ( | const ON_2fPoint & | , | 
| const ON_2fPoint & | |||
| ) | 
set this vector to be perpendicular to a line defined by 2 points
| void ON_2fVector::Reverse | ( | ) | 
| void ON_2fVector::Set | ( | float | , | 
| float | |||
| ) | 
set 2d vector value
| bool ON_2fVector::Unitize | ( | ) | 
      
  | 
  static | 
A index driven function to get unit axis vectors.
| index | [in] 0 returns (1,0), 1 returns (0,1) | 
| ON_2fVector ON_2fVector::UnitVector | ( | ) | const | 
| void ON_2fVector::Zero | ( | ) | 
      
  | 
  static | 
| float ON_2fVector::x | 
      
  | 
  static | 
| float ON_2fVector::y | 
      
  | 
  static | 
      
  | 
  static |