Point Cloud Library (PCL)  1.14.1-dev
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
ON_2dVector Class Reference

#include <pcl/surface/3rdparty/opennurbs/opennurbs_point.h>

+ Collaboration diagram for ON_2dVector:

Public Member Functions

 ON_2dVector ()
 
 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 *)
 
 operator double * ()
 
 operator const double * () const
 
ON_2dVectoroperator= (const ON_3dVector &)
 
ON_2dVectoroperator= (const ON_2dPoint &)
 
ON_2dVectoroperator= (const ON_3dPoint &)
 
ON_2dVectoroperator= (const double *)
 
ON_2dVectoroperator= (const ON_2fVector &)
 
ON_2dVectoroperator= (const ON_3fVector &)
 
ON_2dVectoroperator= (const ON_2fPoint &)
 
ON_2dVectoroperator= (const ON_3fPoint &)
 
ON_2dVectoroperator= (const float *)
 
ON_2dVector operator- () const
 
ON_2dVectoroperator*= (double)
 
ON_2dVectoroperator/= (double)
 
ON_2dVectoroperator+= (const ON_2dVector &)
 
ON_2dVectoroperator-= (const ON_2dVector &)
 
double operator* (const ON_2dVector &) const
 
double operator* (const ON_2dPoint &) const
 
double operator* (const ON_2fVector &) const
 
ON_2dVector operator* (int) const
 
ON_2dVector operator/ (int) const
 
ON_2dVector operator* (float) const
 
ON_2dVector operator/ (float) const
 
ON_2dVector operator* (double) const
 
ON_2dVector operator/ (double) const
 
ON_2dVector operator+ (const ON_2dVector &) const
 
ON_2dPoint operator+ (const ON_2dPoint &) 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_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_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_3dVector operator- (const ON_3fVector &) const
 
ON_3dPoint operator- (const ON_3fPoint &) const
 
double operator* (const ON_4dPoint &) const
 
ON_2dVector operator* (const ON_Xform &) const
 
bool operator== (const ON_2dVector &) const
 
bool operator!= (const ON_2dVector &) const
 
bool operator<= (const ON_2dVector &) const
 
bool operator>= (const ON_2dVector &) const
 
bool operator< (const ON_2dVector &) const
 
bool operator> (const ON_2dVector &) const
 
double & operator[] (int)
 
double operator[] (int) const
 
double & operator[] (unsigned int)
 
double operator[] (unsigned int) const
 
bool IsValid () const
 
bool IsUnsetVector () const
 
void Set (double x, double y)
 
int MaximumCoordinateIndex () const
 
double MaximumCoordinate () const
 
int MinimumCoordinateIndex () const
 
double MinimumCoordinate () const
 
double LengthSquared () const
 
double Length () const
 
double WedgeProduct (const ON_2dVector &B) const
 
bool Decompose (const ON_2dVector &, const ON_2dVector &, double *, double *) 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
 
void Zero ()
 
void Reverse ()
 
bool Unitize ()
 
bool IsTiny (double tiny_tol=ON_ZERO_TOLERANCE) const
 
bool IsZero () const
 
bool IsUnitVector () const
 
bool PerpendicularTo (const ON_2dVector &)
 
bool PerpendicularTo (const ON_2dPoint &, const ON_2dPoint &)
 
void Transform (const ON_Xform &)
 
void Rotate (double angle)
 
void Rotate (double sin_angle, double cos_angle)
 

Static Public Member Functions

static const ON_2dVectorUnitVector (int)
 

Public Attributes

double x
 
double y
 

Static Public Attributes

static const ON_2dVector ZeroVector
 
static const ON_2dVector XAxis
 
static const ON_2dVector YAxis
 
static const ON_2dVector UnsetVector
 

Detailed Description

Definition at line 674 of file opennurbs_point.h.

Constructor & Destructor Documentation

◆ ON_2dVector() [1/11]

ON_2dVector::ON_2dVector ( )

◆ ON_2dVector() [2/11]

ON_2dVector::ON_2dVector ( double  x,
double  y 
)

◆ ON_2dVector() [3/11]

ON_2dVector::ON_2dVector ( const ON_3dVector )

◆ ON_2dVector() [4/11]

ON_2dVector::ON_2dVector ( const ON_2dPoint )

◆ ON_2dVector() [5/11]

ON_2dVector::ON_2dVector ( const ON_3dPoint )

◆ ON_2dVector() [6/11]

ON_2dVector::ON_2dVector ( const double *  )

◆ ON_2dVector() [7/11]

ON_2dVector::ON_2dVector ( const ON_2fVector )

◆ ON_2dVector() [8/11]

ON_2dVector::ON_2dVector ( const ON_3fVector )

◆ ON_2dVector() [9/11]

ON_2dVector::ON_2dVector ( const ON_2fPoint )

◆ ON_2dVector() [10/11]

ON_2dVector::ON_2dVector ( const ON_3fPoint )

◆ ON_2dVector() [11/11]

ON_2dVector::ON_2dVector ( const float *  )

Member Function Documentation

◆ Decompose()

bool ON_2dVector::Decompose ( const ON_2dVector ,
const ON_2dVector ,
double *  ,
double *   
) const

◆ IsParallelTo()

int ON_2dVector::IsParallelTo ( const ON_2dVector other,
double  angle_tolerance = ON_DEFAULT_ANGLE_TOLERANCE 
) const

◆ IsPerpendicularTo()

bool ON_2dVector::IsPerpendicularTo ( const ON_2dVector other,
double  angle_tolerance = ON_DEFAULT_ANGLE_TOLERANCE 
) const

◆ IsTiny()

bool ON_2dVector::IsTiny ( double  tiny_tol = ON_ZERO_TOLERANCE) const

◆ IsUnitVector()

bool ON_2dVector::IsUnitVector ( ) const

◆ IsUnsetVector()

bool ON_2dVector::IsUnsetVector ( ) const

◆ IsValid()

bool ON_2dVector::IsValid ( ) const

◆ IsZero()

bool ON_2dVector::IsZero ( ) const

◆ Length()

double ON_2dVector::Length ( ) const

◆ LengthSquared()

double ON_2dVector::LengthSquared ( ) const

◆ MaximumCoordinate()

double ON_2dVector::MaximumCoordinate ( ) const

◆ MaximumCoordinateIndex()

int ON_2dVector::MaximumCoordinateIndex ( ) const

◆ MinimumCoordinate()

double ON_2dVector::MinimumCoordinate ( ) const

◆ MinimumCoordinateIndex()

int ON_2dVector::MinimumCoordinateIndex ( ) const

◆ operator const double *()

ON_2dVector::operator const double * ( ) const

◆ operator double *()

ON_2dVector::operator double * ( )

◆ operator!=()

bool ON_2dVector::operator!= ( const ON_2dVector ) const

◆ operator*() [1/8]

double ON_2dVector::operator* ( const ON_2dPoint ) const

◆ operator*() [2/8]

double ON_2dVector::operator* ( const ON_2dVector ) const

◆ operator*() [3/8]

double ON_2dVector::operator* ( const ON_2fVector ) const

◆ operator*() [4/8]

double ON_2dVector::operator* ( const ON_4dPoint ) const

◆ operator*() [5/8]

ON_2dVector ON_2dVector::operator* ( const ON_Xform ) const

◆ operator*() [6/8]

ON_2dVector ON_2dVector::operator* ( double  ) const

◆ operator*() [7/8]

ON_2dVector ON_2dVector::operator* ( float  ) const

◆ operator*() [8/8]

ON_2dVector ON_2dVector::operator* ( int  ) const

◆ operator*=()

ON_2dVector& ON_2dVector::operator*= ( double  )

◆ operator+() [1/8]

ON_2dPoint ON_2dVector::operator+ ( const ON_2dPoint ) const

◆ operator+() [2/8]

ON_2dVector ON_2dVector::operator+ ( const ON_2dVector ) const

◆ operator+() [3/8]

ON_2dPoint ON_2dVector::operator+ ( const ON_2fPoint ) const

◆ operator+() [4/8]

ON_2dVector ON_2dVector::operator+ ( const ON_2fVector ) const

◆ operator+() [5/8]

ON_3dPoint ON_2dVector::operator+ ( const ON_3dPoint ) const

◆ operator+() [6/8]

ON_3dVector ON_2dVector::operator+ ( const ON_3dVector ) const

◆ operator+() [7/8]

ON_3dPoint ON_2dVector::operator+ ( const ON_3fPoint ) const

◆ operator+() [8/8]

ON_3dVector ON_2dVector::operator+ ( const ON_3fVector ) const

◆ operator+=()

ON_2dVector& ON_2dVector::operator+= ( const ON_2dVector )

◆ operator-() [1/9]

ON_2dVector ON_2dVector::operator- ( ) const

◆ operator-() [2/9]

ON_2dPoint ON_2dVector::operator- ( const ON_2dPoint ) const

◆ operator-() [3/9]

ON_2dVector ON_2dVector::operator- ( const ON_2dVector ) const

◆ operator-() [4/9]

ON_2dPoint ON_2dVector::operator- ( const ON_2fPoint ) const

◆ operator-() [5/9]

ON_2dVector ON_2dVector::operator- ( const ON_2fVector ) const

◆ operator-() [6/9]

ON_3dPoint ON_2dVector::operator- ( const ON_3dPoint ) const

◆ operator-() [7/9]

ON_3dVector ON_2dVector::operator- ( const ON_3dVector ) const

◆ operator-() [8/9]

ON_3dPoint ON_2dVector::operator- ( const ON_3fPoint ) const

◆ operator-() [9/9]

ON_3dVector ON_2dVector::operator- ( const ON_3fVector ) const

◆ operator-=()

ON_2dVector& ON_2dVector::operator-= ( const ON_2dVector )

◆ operator/() [1/3]

ON_2dVector ON_2dVector::operator/ ( double  ) const

◆ operator/() [2/3]

ON_2dVector ON_2dVector::operator/ ( float  ) const

◆ operator/() [3/3]

ON_2dVector ON_2dVector::operator/ ( int  ) const

◆ operator/=()

ON_2dVector& ON_2dVector::operator/= ( double  )

◆ operator<()

bool ON_2dVector::operator< ( const ON_2dVector ) const

◆ operator<=()

bool ON_2dVector::operator<= ( const ON_2dVector ) const

◆ operator=() [1/9]

ON_2dVector& ON_2dVector::operator= ( const double *  )

◆ operator=() [2/9]

ON_2dVector& ON_2dVector::operator= ( const float *  )

◆ operator=() [3/9]

ON_2dVector& ON_2dVector::operator= ( const ON_2dPoint )

◆ operator=() [4/9]

ON_2dVector& ON_2dVector::operator= ( const ON_2fPoint )

◆ operator=() [5/9]

ON_2dVector& ON_2dVector::operator= ( const ON_2fVector )

◆ operator=() [6/9]

ON_2dVector& ON_2dVector::operator= ( const ON_3dPoint )

◆ operator=() [7/9]

ON_2dVector& ON_2dVector::operator= ( const ON_3dVector )

◆ operator=() [8/9]

ON_2dVector& ON_2dVector::operator= ( const ON_3fPoint )

◆ operator=() [9/9]

ON_2dVector& ON_2dVector::operator= ( const ON_3fVector )

◆ operator==()

bool ON_2dVector::operator== ( const ON_2dVector ) const

◆ operator>()

bool ON_2dVector::operator> ( const ON_2dVector ) const

◆ operator>=()

bool ON_2dVector::operator>= ( const ON_2dVector ) const

◆ operator[]() [1/4]

double& ON_2dVector::operator[] ( int  )

◆ operator[]() [2/4]

double ON_2dVector::operator[] ( int  ) const

◆ operator[]() [3/4]

double& ON_2dVector::operator[] ( unsigned int  )

◆ operator[]() [4/4]

double ON_2dVector::operator[] ( unsigned int  ) const

◆ PerpendicularTo() [1/2]

bool ON_2dVector::PerpendicularTo ( const ON_2dPoint ,
const ON_2dPoint  
)

◆ PerpendicularTo() [2/2]

bool ON_2dVector::PerpendicularTo ( const ON_2dVector )

◆ Reverse()

void ON_2dVector::Reverse ( )

◆ Rotate() [1/2]

void ON_2dVector::Rotate ( double  angle)

◆ Rotate() [2/2]

void ON_2dVector::Rotate ( double  sin_angle,
double  cos_angle 
)

◆ Set()

void ON_2dVector::Set ( double  x,
double  y 
)

◆ Transform()

void ON_2dVector::Transform ( const ON_Xform )

◆ Unitize()

bool ON_2dVector::Unitize ( )

◆ UnitVector()

static const ON_2dVector& ON_2dVector::UnitVector ( int  )
static

◆ WedgeProduct()

double ON_2dVector::WedgeProduct ( const ON_2dVector B) const

◆ Zero()

void ON_2dVector::Zero ( )

Member Data Documentation

◆ UnsetVector

const ON_2dVector ON_2dVector::UnsetVector
static

Definition at line 682 of file opennurbs_point.h.

◆ x

double ON_2dVector::x

Definition at line 677 of file opennurbs_point.h.

◆ XAxis

const ON_2dVector ON_2dVector::XAxis
static

Definition at line 680 of file opennurbs_point.h.

◆ y

double ON_2dVector::y

Definition at line 677 of file opennurbs_point.h.

◆ YAxis

const ON_2dVector ON_2dVector::YAxis
static

Definition at line 681 of file opennurbs_point.h.

◆ ZeroVector

const ON_2dVector ON_2dVector::ZeroVector
static

Definition at line 679 of file opennurbs_point.h.


The documentation for this class was generated from the following file: