HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Vector2 Class Reference

#include <HOM_Vector2.h>

Public Member Functions

 HOM_Vector2 ()
 
 HOM_Vector2 (double x, double y)
 
 HOM_Vector2 (const UT_Vector2D &vector2)
 
 HOM_Vector2 (const UT_Vector2F &vector2)
 
 HOM_Vector2 (const std::vector< double > &sequence)
 
 ~HOM_Vector2 ()
 
bool operator== (HOM_PtrOrNull< HOM_Vector2 > vector2)
 
bool operator!= (HOM_PtrOrNull< HOM_Vector2 > vector2)
 
bool isAlmostEqual (HOM_Vector2 &vector2, double tolerance=0.00001)
 
bool almostEqual (HOM_Vector2 &vector2, double tolerance=0.00001)
 
int __hash__ ()
 
std::string __str__ ()
 
std::string __repr__ ()
 
double __getitem__ (int index)
 
void __setitem__ (int index, double value)
 
int __len__ ()
 
double & operator[] (int index)
 
void setTo (const std::vector< double > &sequence)
 
HOM_Vector2operator= (const HOM_Vector2 &vector2)
 
HOM_Vector2 __add__ (HOM_Vector2 &vector2)
 
HOM_Vector2 __sub__ (HOM_Vector2 &vector2)
 
HOM_Vector2 __neg__ ()
 
HOM_Vector2 __mul__ (double scalar)
 
HOM_Vector2 __rmul__ (double scalar)
 
HOM_Vector2 __mul__ (const HOM_Matrix2 &matrix2)
 
HOM_Vector2 __div__ (double scalar)
 
HOM_Vector2 normalized ()
 
double length ()
 
double lengthSquared ()
 
double distanceTo (HOM_Vector2 &vector2)
 
double dot (HOM_Vector2 &vector2)
 
double x ()
 
double y ()
 
void_asVoidPointer ()
 

Public Attributes

UT_Vector2D myVector2
 

Detailed Description

Definition at line 24 of file HOM_Vector2.h.

Constructor & Destructor Documentation

HOM_Vector2::HOM_Vector2 ( )
inline

Definition at line 27 of file HOM_Vector2.h.

HOM_Vector2::HOM_Vector2 ( double  x,
double  y 
)
inline

Definition at line 31 of file HOM_Vector2.h.

HOM_Vector2::HOM_Vector2 ( const UT_Vector2D vector2)
inline

Definition at line 36 of file HOM_Vector2.h.

HOM_Vector2::HOM_Vector2 ( const UT_Vector2F vector2)
inline

Definition at line 41 of file HOM_Vector2.h.

HOM_Vector2::HOM_Vector2 ( const std::vector< double > &  sequence)
inline

Definition at line 45 of file HOM_Vector2.h.

HOM_Vector2::~HOM_Vector2 ( )
inline

Definition at line 51 of file HOM_Vector2.h.

Member Function Documentation

HOM_Vector2 HOM_Vector2::__add__ ( HOM_Vector2 vector2)
inline

Definition at line 89 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::__div__ ( double  scalar)
inline

Definition at line 101 of file HOM_Vector2.h.

double HOM_Vector2::__getitem__ ( int  index)
int HOM_Vector2::__hash__ ( )
int HOM_Vector2::__len__ ( )
inline

Definition at line 72 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::__mul__ ( double  scalar)
inline

Definition at line 95 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::__mul__ ( const HOM_Matrix2 matrix2)
inline

Definition at line 99 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::__neg__ ( )
inline

Definition at line 93 of file HOM_Vector2.h.

std::string HOM_Vector2::__repr__ ( )
HOM_Vector2 HOM_Vector2::__rmul__ ( double  scalar)
inline

Definition at line 97 of file HOM_Vector2.h.

void HOM_Vector2::__setitem__ ( int  index,
double  value 
)
std::string HOM_Vector2::__str__ ( )
HOM_Vector2 HOM_Vector2::__sub__ ( HOM_Vector2 vector2)
inline

Definition at line 91 of file HOM_Vector2.h.

void* HOM_Vector2::_asVoidPointer ( )
inline

Definition at line 120 of file HOM_Vector2.h.

bool HOM_Vector2::almostEqual ( HOM_Vector2 vector2,
double  tolerance = 0.00001 
)
inline

Definition at line 63 of file HOM_Vector2.h.

double HOM_Vector2::distanceTo ( HOM_Vector2 vector2)
double HOM_Vector2::dot ( HOM_Vector2 vector2)
inline

Definition at line 112 of file HOM_Vector2.h.

bool HOM_Vector2::isAlmostEqual ( HOM_Vector2 vector2,
double  tolerance = 0.00001 
)
double HOM_Vector2::length ( void  )
inline

Definition at line 105 of file HOM_Vector2.h.

double HOM_Vector2::lengthSquared ( )
inline

Definition at line 107 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::normalized ( )
bool HOM_Vector2::operator!= ( HOM_PtrOrNull< HOM_Vector2 vector2)
inline

Definition at line 57 of file HOM_Vector2.h.

HOM_Vector2& HOM_Vector2::operator= ( const HOM_Vector2 vector2)
inline

Definition at line 83 of file HOM_Vector2.h.

bool HOM_Vector2::operator== ( HOM_PtrOrNull< HOM_Vector2 vector2)
inline

Definition at line 54 of file HOM_Vector2.h.

double& HOM_Vector2::operator[] ( int  index)
void HOM_Vector2::setTo ( const std::vector< double > &  sequence)
double HOM_Vector2::x ( )
inline

Definition at line 115 of file HOM_Vector2.h.

double HOM_Vector2::y ( )
inline

Definition at line 117 of file HOM_Vector2.h.

Member Data Documentation

UT_Vector2D HOM_Vector2::myVector2

Definition at line 124 of file HOM_Vector2.h.


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