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

#include <HOM_Vector3.h>

Public Member Functions

 HOM_Vector3 ()
 
 HOM_Vector3 (double x, double y, double z)
 
 HOM_Vector3 (const HOM_Vector3 &vector3)
 
 HOM_Vector3 (const UT_Vector3D &vector3)
 
 HOM_Vector3 (const UT_Vector3F &vector3)
 
 HOM_Vector3 (const std::vector< double > &sequence)
 
 HOM_Vector3 (HOM_Vector4 &vector4)
 
 ~HOM_Vector3 ()
 
bool operator== (HOM_PtrOrNull< HOM_Vector3 > vector3)
 
bool operator!= (HOM_PtrOrNull< HOM_Vector3 > vector3)
 
bool isAlmostEqual (HOM_Vector3 &vector3, double tolerance=0.00001)
 
bool almostEqual (HOM_Vector3 &vector3, 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_Vector3operator= (const HOM_Vector3 &vector3)
 
HOM_Vector3 __add__ (HOM_Vector3 &vector3)
 
HOM_Vector3 __sub__ (HOM_Vector3 &vector3)
 
HOM_Vector3 __neg__ ()
 
HOM_Vector3 __mul__ (double scalar)
 
HOM_Vector3 __rmul__ (double scalar)
 
HOM_Vector3 __mul__ (HOM_Matrix3 &matrix3)
 
HOM_Vector3 __mul__ (HOM_Matrix4 &matrix4)
 
HOM_Vector3 __div__ (double scalar)
 
HOM_Vector3 __truediv__ (double scalar)
 
HOM_Vector3 normalized ()
 
HOM_Vector3 multiplyAsDir (HOM_Matrix4 &matrix4)
 
double length ()
 
double lengthSquared ()
 
HOM_Matrix4matrixToRotateTo (HOM_Vector3 &vector3)
 
HOM_Vector3 smoothRotation (const HOM_Vector3 &reference, const char *rotate_order="xyz")
 
double distanceTo (HOM_Vector3 &vector3)
 
double angleTo (HOM_Vector3 &vector3)
 
double dot (HOM_Vector3 &vector3)
 
HOM_Vector3 cross (HOM_Vector3 &vector3)
 
HOM_Vector3 ocio_transform (const std::string &src_space, const std::string &dest_space) const
 
double x ()
 
double y ()
 
double z ()
 
void_asVoidPointer ()
 
double distanceToSegment (HOM_Vector3 const &point1, HOM_Vector3 const &point2) const
 
double distance2ToSegment (HOM_Vector3 const &point1, HOM_Vector3 const &point2) const
 
HOM_Vector3 pointOnSegment (HOM_Vector3 const &point1, HOM_Vector3 const &point2) const
 

Public Attributes

UT_Vector3D myVector3
 

Detailed Description

Examples:
HOM/SOP_HOMWave.C.

Definition at line 26 of file HOM_Vector3.h.

Constructor & Destructor Documentation

HOM_Vector3::HOM_Vector3 ( )
inline

Definition at line 29 of file HOM_Vector3.h.

HOM_Vector3::HOM_Vector3 ( double  x,
double  y,
double  z 
)
inline

Definition at line 33 of file HOM_Vector3.h.

HOM_Vector3::HOM_Vector3 ( const HOM_Vector3 vector3)
inline

Definition at line 38 of file HOM_Vector3.h.

HOM_Vector3::HOM_Vector3 ( const UT_Vector3D vector3)
inline

Definition at line 43 of file HOM_Vector3.h.

HOM_Vector3::HOM_Vector3 ( const UT_Vector3F vector3)
inline

Definition at line 48 of file HOM_Vector3.h.

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

Definition at line 52 of file HOM_Vector3.h.

HOM_Vector3::HOM_Vector3 ( HOM_Vector4 vector4)
HOM_Vector3::~HOM_Vector3 ( )
inline

Definition at line 60 of file HOM_Vector3.h.

Member Function Documentation

HOM_Vector3 HOM_Vector3::__add__ ( HOM_Vector3 vector3)
inline

Definition at line 98 of file HOM_Vector3.h.

HOM_Vector3 HOM_Vector3::__div__ ( double  scalar)
inline

Definition at line 110 of file HOM_Vector3.h.

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

Definition at line 81 of file HOM_Vector3.h.

HOM_Vector3 HOM_Vector3::__mul__ ( double  scalar)
inline

Definition at line 104 of file HOM_Vector3.h.

HOM_Vector3 HOM_Vector3::__mul__ ( HOM_Matrix3 matrix3)
HOM_Vector3 HOM_Vector3::__mul__ ( HOM_Matrix4 matrix4)
HOM_Vector3 HOM_Vector3::__neg__ ( )
inline

Definition at line 102 of file HOM_Vector3.h.

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

Definition at line 106 of file HOM_Vector3.h.

void HOM_Vector3::__setitem__ ( int  index,
double  value 
)
std::string HOM_Vector3::__str__ ( )
HOM_Vector3 HOM_Vector3::__sub__ ( HOM_Vector3 vector3)
inline

Definition at line 100 of file HOM_Vector3.h.

HOM_Vector3 HOM_Vector3::__truediv__ ( double  scalar)
inline

Definition at line 112 of file HOM_Vector3.h.

void* HOM_Vector3::_asVoidPointer ( )
inline

Definition at line 148 of file HOM_Vector3.h.

bool HOM_Vector3::almostEqual ( HOM_Vector3 vector3,
double  tolerance = 0.00001 
)
inline

Definition at line 72 of file HOM_Vector3.h.

double HOM_Vector3::angleTo ( HOM_Vector3 vector3)
HOM_Vector3 HOM_Vector3::cross ( HOM_Vector3 vector3)
inline

Definition at line 135 of file HOM_Vector3.h.

double HOM_Vector3::distance2ToSegment ( HOM_Vector3 const point1,
HOM_Vector3 const point2 
) const
double HOM_Vector3::distanceTo ( HOM_Vector3 vector3)
double HOM_Vector3::distanceToSegment ( HOM_Vector3 const point1,
HOM_Vector3 const point2 
) const
double HOM_Vector3::dot ( HOM_Vector3 vector3)
inline

Definition at line 133 of file HOM_Vector3.h.

bool HOM_Vector3::isAlmostEqual ( HOM_Vector3 vector3,
double  tolerance = 0.00001 
)
double HOM_Vector3::length ( void  )
inline

Definition at line 117 of file HOM_Vector3.h.

double HOM_Vector3::lengthSquared ( )
inline

Definition at line 119 of file HOM_Vector3.h.

HOM_Matrix4* HOM_Vector3::matrixToRotateTo ( HOM_Vector3 vector3)
HOM_Vector3 HOM_Vector3::multiplyAsDir ( HOM_Matrix4 matrix4)
HOM_Vector3 HOM_Vector3::normalized ( )
HOM_Vector3 HOM_Vector3::ocio_transform ( const std::string src_space,
const std::string dest_space 
) const
bool HOM_Vector3::operator!= ( HOM_PtrOrNull< HOM_Vector3 vector3)
inline

Definition at line 66 of file HOM_Vector3.h.

HOM_Vector3& HOM_Vector3::operator= ( const HOM_Vector3 vector3)
inline

Definition at line 92 of file HOM_Vector3.h.

bool HOM_Vector3::operator== ( HOM_PtrOrNull< HOM_Vector3 vector3)
inline

Definition at line 63 of file HOM_Vector3.h.

double& HOM_Vector3::operator[] ( int  index)
HOM_Vector3 HOM_Vector3::pointOnSegment ( HOM_Vector3 const point1,
HOM_Vector3 const point2 
) const
void HOM_Vector3::setTo ( const std::vector< double > &  sequence)
HOM_Vector3 HOM_Vector3::smoothRotation ( const HOM_Vector3 reference,
const char *  rotate_order = "xyz" 
)
double HOM_Vector3::x ( )
inline

Definition at line 141 of file HOM_Vector3.h.

double HOM_Vector3::y ( )
inline

Definition at line 143 of file HOM_Vector3.h.

double HOM_Vector3::z ( )
inline

Definition at line 145 of file HOM_Vector3.h.

Member Data Documentation

UT_Vector3D HOM_Vector3::myVector3

Definition at line 161 of file HOM_Vector3.h.


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