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 HOM_Vector2 &vector2)
 
 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 __truediv__ (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 ()
 
std::vector< double > _getstate ()
 
void _setstate (std::vector< double >)
 

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 HOM_Vector2 vector2)
inline

Definition at line 36 of file HOM_Vector2.h.

HOM_Vector2::HOM_Vector2 ( const UT_Vector2D vector2)
inline

Definition at line 41 of file HOM_Vector2.h.

HOM_Vector2::HOM_Vector2 ( const UT_Vector2F vector2)
inline

Definition at line 46 of file HOM_Vector2.h.

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

Definition at line 50 of file HOM_Vector2.h.

HOM_Vector2::~HOM_Vector2 ( )
inline

Definition at line 56 of file HOM_Vector2.h.

Member Function Documentation

HOM_Vector2 HOM_Vector2::__add__ ( HOM_Vector2 vector2)
inline

Definition at line 94 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::__div__ ( double  scalar)
inline

Definition at line 106 of file HOM_Vector2.h.

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

Definition at line 77 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::__mul__ ( double  scalar)
inline

Definition at line 100 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::__mul__ ( const HOM_Matrix2 matrix2)
inline

Definition at line 104 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::__neg__ ( )
inline

Definition at line 98 of file HOM_Vector2.h.

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

Definition at line 102 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 96 of file HOM_Vector2.h.

HOM_Vector2 HOM_Vector2::__truediv__ ( double  scalar)
inline

Definition at line 108 of file HOM_Vector2.h.

void* HOM_Vector2::_asVoidPointer ( )
inline

Definition at line 127 of file HOM_Vector2.h.

std::vector<double> HOM_Vector2::_getstate ( )
void HOM_Vector2::_setstate ( std::vector< double >  )
bool HOM_Vector2::almostEqual ( HOM_Vector2 vector2,
double  tolerance = 0.00001 
)
inline

Definition at line 68 of file HOM_Vector2.h.

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

Definition at line 119 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 112 of file HOM_Vector2.h.

double HOM_Vector2::lengthSquared ( )
inline

Definition at line 114 of file HOM_Vector2.h.

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

Definition at line 62 of file HOM_Vector2.h.

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

Definition at line 88 of file HOM_Vector2.h.

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

Definition at line 59 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 122 of file HOM_Vector2.h.

double HOM_Vector2::y ( )
inline

Definition at line 124 of file HOM_Vector2.h.

Member Data Documentation

UT_Vector2D HOM_Vector2::myVector2

Definition at line 131 of file HOM_Vector2.h.


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