HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 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_Matrix4 &matrix4)
 
HOM_Vector3 __div__ (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 ()
 

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 UT_Vector3D vector3)
inline

Definition at line 38 of file HOM_Vector3.h.

HOM_Vector3::HOM_Vector3 ( const UT_Vector3F vector3)
inline

Definition at line 43 of file HOM_Vector3.h.

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

Definition at line 47 of file HOM_Vector3.h.

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

Definition at line 55 of file HOM_Vector3.h.

Member Function Documentation

HOM_Vector3 HOM_Vector3::__add__ ( HOM_Vector3 vector3)
inline

Definition at line 93 of file HOM_Vector3.h.

HOM_Vector3 HOM_Vector3::__div__ ( double  scalar)
inline

Definition at line 104 of file HOM_Vector3.h.

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

Definition at line 76 of file HOM_Vector3.h.

HOM_Vector3 HOM_Vector3::__mul__ ( double  scalar)
inline

Definition at line 99 of file HOM_Vector3.h.

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

Definition at line 97 of file HOM_Vector3.h.

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

Definition at line 101 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 95 of file HOM_Vector3.h.

void* HOM_Vector3::_asVoidPointer ( )
inline

Definition at line 140 of file HOM_Vector3.h.

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

Definition at line 67 of file HOM_Vector3.h.

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

Definition at line 127 of file HOM_Vector3.h.

double HOM_Vector3::distanceTo ( HOM_Vector3 vector3)
double HOM_Vector3::dot ( HOM_Vector3 vector3)
inline

Definition at line 125 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 109 of file HOM_Vector3.h.

double HOM_Vector3::lengthSquared ( )
inline

Definition at line 111 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 61 of file HOM_Vector3.h.

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

Definition at line 87 of file HOM_Vector3.h.

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

Definition at line 58 of file HOM_Vector3.h.

double& HOM_Vector3::operator[] ( int  index)
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 133 of file HOM_Vector3.h.

double HOM_Vector3::y ( )
inline

Definition at line 135 of file HOM_Vector3.h.

double HOM_Vector3::z ( )
inline

Definition at line 137 of file HOM_Vector3.h.

Member Data Documentation

UT_Vector3D HOM_Vector3::myVector3

Definition at line 145 of file HOM_Vector3.h.


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