HDK
|
#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_Vector2 & | operator= (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 |
Definition at line 24 of file HOM_Vector2.h.
|
inline |
Definition at line 27 of file HOM_Vector2.h.
|
inline |
Definition at line 31 of file HOM_Vector2.h.
|
inline |
Definition at line 36 of file HOM_Vector2.h.
|
inline |
Definition at line 41 of file HOM_Vector2.h.
|
inline |
Definition at line 46 of file HOM_Vector2.h.
|
inline |
Definition at line 50 of file HOM_Vector2.h.
|
inline |
Definition at line 56 of file HOM_Vector2.h.
|
inline |
Definition at line 94 of file HOM_Vector2.h.
|
inline |
Definition at line 106 of file HOM_Vector2.h.
double HOM_Vector2::__getitem__ | ( | int | index | ) |
int HOM_Vector2::__hash__ | ( | ) |
|
inline |
Definition at line 77 of file HOM_Vector2.h.
|
inline |
Definition at line 100 of file HOM_Vector2.h.
|
inline |
Definition at line 104 of file HOM_Vector2.h.
|
inline |
Definition at line 98 of file HOM_Vector2.h.
std::string HOM_Vector2::__repr__ | ( | ) |
|
inline |
Definition at line 102 of file HOM_Vector2.h.
std::string HOM_Vector2::__str__ | ( | ) |
|
inline |
Definition at line 96 of file HOM_Vector2.h.
|
inline |
Definition at line 108 of file HOM_Vector2.h.
|
inline |
Definition at line 127 of file HOM_Vector2.h.
std::vector<double> HOM_Vector2::_getstate | ( | ) |
void HOM_Vector2::_setstate | ( | std::vector< double > | ) |
|
inline |
Definition at line 68 of file HOM_Vector2.h.
double HOM_Vector2::distanceTo | ( | HOM_Vector2 & | vector2 | ) |
|
inline |
Definition at line 119 of file HOM_Vector2.h.
bool HOM_Vector2::isAlmostEqual | ( | HOM_Vector2 & | vector2, |
double | tolerance = 0.00001 |
||
) |
|
inline |
Definition at line 112 of file HOM_Vector2.h.
|
inline |
Definition at line 114 of file HOM_Vector2.h.
HOM_Vector2 HOM_Vector2::normalized | ( | ) |
|
inline |
Definition at line 62 of file HOM_Vector2.h.
|
inline |
Definition at line 88 of file HOM_Vector2.h.
|
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 | ) |
|
inline |
Definition at line 122 of file HOM_Vector2.h.
|
inline |
Definition at line 124 of file HOM_Vector2.h.
UT_Vector2D HOM_Vector2::myVector2 |
Definition at line 131 of file HOM_Vector2.h.