Rumba C++ SDK
Imath::Vec3< T > Class Template Reference

#include <ImathFrame.h>

Inheritance diagram for Imath::Vec3< T >:
Imath::Color3< T > Imath::Euler< T >

Public Types

typedef T BaseType
 

Public Member Functions

T & operator[] (int i)
 
const T & operator[] (int i) const
 
 Vec3 ()
 
 Vec3 (T a)
 
 Vec3 (T a, T b, T c)
 
 Vec3 (const Vec3 &v)
 
template<class S >
 Vec3 (const Vec3< S > &v)
 
const Vec3operator= (const Vec3 &v)
 
template<class S >
 Vec3 (const Vec4< S > &v)
 
template<class S >
 Vec3 (const Vec4< S > &v, InfException)
 
template<class S >
void setValue (S a, S b, S c)
 
template<class S >
void setValue (const Vec3< S > &v)
 
template<class S >
void getValue (S &a, S &b, S &c) const
 
template<class S >
void getValue (Vec3< S > &v) const
 
T * getValue ()
 
const T * getValue () const
 
template<class S >
bool operator== (const Vec3< S > &v) const
 
template<class S >
bool operator!= (const Vec3< S > &v) const
 
bool equalWithAbsError (const Vec3< T > &v, T e) const
 
bool equalWithRelError (const Vec3< T > &v, T e) const
 
dot (const Vec3 &v) const
 
operator^ (const Vec3 &v) const
 
Vec3 cross (const Vec3 &v) const
 
const Vec3operator%= (const Vec3 &v)
 
Vec3 operator% (const Vec3 &v) const
 
const Vec3operator+= (const Vec3 &v)
 
Vec3 operator+ (const Vec3 &v) const
 
const Vec3operator-= (const Vec3 &v)
 
Vec3 operator- (const Vec3 &v) const
 
Vec3 operator- () const
 
const Vec3negate ()
 
const Vec3operator*= (const Vec3 &v)
 
const Vec3operator*= (T a)
 
Vec3 operator* (const Vec3 &v) const
 
Vec3 operator* (T a) const
 
const Vec3operator/= (const Vec3 &v)
 
const Vec3operator/= (T a)
 
Vec3 operator/ (const Vec3 &v) const
 
Vec3 operator/ (T a) const
 
length () const
 
length2 () const
 
const Vec3normalize ()
 
const Vec3normalizeExc () throw (Iex::MathExc)
 
const Vec3normalizeNonNull ()
 
Vec3< T > normalized () const
 
Vec3< T > normalizedExc () const throw (Iex::MathExc)
 
Vec3< T > normalizedNonNull () const
 
template<>
short length () const
 
template<>
const Vec3< short > & normalize ()
 
template<>
const Vec3< short > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec3< short > & normalizeNonNull ()
 
template<>
Vec3< short > normalized () const
 
template<>
Vec3< short > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec3< short > normalizedNonNull () const
 
template<>
int length () const
 
template<>
const Vec3< int > & normalize ()
 
template<>
const Vec3< int > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec3< int > & normalizeNonNull ()
 
template<>
Vec3< int > normalized () const
 
template<>
Vec3< int > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec3< int > normalizedNonNull () const
 

Static Public Member Functions

static unsigned int dimensions ()
 
static T baseTypeMin ()
 
static T baseTypeMax ()
 
static T baseTypeSmallest ()
 
static T baseTypeEpsilon ()
 

Public Attributes

x
 
y
 
z
 

Member Typedef Documentation

◆ BaseType

template<class T>
typedef T Imath::Vec3< T >::BaseType

Constructor & Destructor Documentation

◆ Vec3() [1/7]

template<class T >
Imath::Vec3< T >::Vec3 ( )
inline

◆ Vec3() [2/7]

template<class T >
Imath::Vec3< T >::Vec3 ( a)
inlineexplicit

◆ Vec3() [3/7]

template<class T >
Imath::Vec3< T >::Vec3 ( a,
b,
c 
)
inline

◆ Vec3() [4/7]

template<class T >
Imath::Vec3< T >::Vec3 ( const Vec3< T > &  v)
inline

◆ Vec3() [5/7]

template<class T >
template<class S >
Imath::Vec3< T >::Vec3 ( const Vec3< S > &  v)
inline

◆ Vec3() [6/7]

template<class T >
template<class S >
Imath::Vec3< T >::Vec3 ( const Vec4< S > &  v)
inlineexplicit

◆ Vec3() [7/7]

template<class T >
template<class S >
Imath::Vec3< T >::Vec3 ( const Vec4< S > &  v,
InfException   
)
explicit

Member Function Documentation

◆ baseTypeEpsilon()

template<class T>
static T Imath::Vec3< T >::baseTypeEpsilon ( )
inlinestatic

◆ baseTypeMax()

template<class T>
static T Imath::Vec3< T >::baseTypeMax ( )
inlinestatic

◆ baseTypeMin()

template<class T>
static T Imath::Vec3< T >::baseTypeMin ( )
inlinestatic

◆ baseTypeSmallest()

template<class T>
static T Imath::Vec3< T >::baseTypeSmallest ( )
inlinestatic

◆ cross()

template<class T >
Vec3< T > Imath::Vec3< T >::cross ( const Vec3< T > &  v) const
inline

◆ dimensions()

template<class T>
static unsigned int Imath::Vec3< T >::dimensions ( )
inlinestatic

◆ dot()

template<class T >
T Imath::Vec3< T >::dot ( const Vec3< T > &  v) const
inline

◆ equalWithAbsError()

template<class T >
bool Imath::Vec3< T >::equalWithAbsError ( const Vec3< T > &  v,
e 
) const

◆ equalWithRelError()

template<class T >
bool Imath::Vec3< T >::equalWithRelError ( const Vec3< T > &  v,
e 
) const

◆ getValue() [1/4]

template<class T >
template<class S >
void Imath::Vec3< T >::getValue ( S &  a,
S &  b,
S &  c 
) const
inline

◆ getValue() [2/4]

template<class T >
template<class S >
void Imath::Vec3< T >::getValue ( Vec3< S > &  v) const
inline

◆ getValue() [3/4]

template<class T >
T * Imath::Vec3< T >::getValue ( )
inline

◆ getValue() [4/4]

template<class T >
const T * Imath::Vec3< T >::getValue ( ) const
inline

◆ length() [1/3]

template<class T >
T Imath::Vec3< T >::length ( ) const
inline

◆ length() [2/3]

template<>
short Imath::Vec3< short >::length ( ) const

◆ length() [3/3]

template<>
int Imath::Vec3< int >::length ( ) const

◆ length2()

template<class T >
T Imath::Vec3< T >::length2 ( ) const
inline

◆ negate()

template<class T >
const Vec3< T > & Imath::Vec3< T >::negate ( )
inline

◆ normalize() [1/3]

template<class T >
const Vec3< T > & Imath::Vec3< T >::normalize ( )

◆ normalize() [2/3]

template<>
const Vec3< short > & Imath::Vec3< short >::normalize ( )

◆ normalize() [3/3]

template<>
const Vec3< int > & Imath::Vec3< int >::normalize ( )

◆ normalized() [1/3]

template<class T >
Vec3< T > Imath::Vec3< T >::normalized ( ) const

◆ normalized() [2/3]

template<>
Vec3< short > Imath::Vec3< short >::normalized ( ) const

◆ normalized() [3/3]

template<>
Vec3< int > Imath::Vec3< int >::normalized ( ) const

◆ normalizedExc() [1/3]

template<class T >
Vec3< T > Imath::Vec3< T >::normalizedExc ( ) const
throw (Iex::MathExc
)

◆ normalizedExc() [2/3]

template<>
Vec3< short > Imath::Vec3< short >::normalizedExc ( ) const
throw(Iex::MathExc
)

◆ normalizedExc() [3/3]

template<>
Vec3< int > Imath::Vec3< int >::normalizedExc ( ) const
throw(Iex::MathExc
)

◆ normalizedNonNull() [1/3]

template<class T >
Vec3< T > Imath::Vec3< T >::normalizedNonNull ( ) const
inline

◆ normalizedNonNull() [2/3]

template<>
Vec3< short > Imath::Vec3< short >::normalizedNonNull ( ) const

◆ normalizedNonNull() [3/3]

template<>
Vec3< int > Imath::Vec3< int >::normalizedNonNull ( ) const

◆ normalizeExc() [1/3]

template<class T >
const Vec3< T > & Imath::Vec3< T >::normalizeExc ( )
throw (Iex::MathExc
)

◆ normalizeExc() [2/3]

template<>
const Vec3< short > & Imath::Vec3< short >::normalizeExc ( )
throw(Iex::MathExc
)

◆ normalizeExc() [3/3]

template<>
const Vec3< int > & Imath::Vec3< int >::normalizeExc ( )
throw(Iex::MathExc
)

◆ normalizeNonNull() [1/3]

template<class T >
const Vec3< T > & Imath::Vec3< T >::normalizeNonNull ( )
inline

◆ normalizeNonNull() [2/3]

template<>
const Vec3< short > & Imath::Vec3< short >::normalizeNonNull ( )

◆ normalizeNonNull() [3/3]

template<>
const Vec3< int > & Imath::Vec3< int >::normalizeNonNull ( )

◆ operator!=()

template<class T >
template<class S >
bool Imath::Vec3< T >::operator!= ( const Vec3< S > &  v) const
inline

◆ operator%()

template<class T >
Vec3< T > Imath::Vec3< T >::operator% ( const Vec3< T > &  v) const
inline

◆ operator%=()

template<class T >
const Vec3< T > & Imath::Vec3< T >::operator%= ( const Vec3< T > &  v)
inline

◆ operator*() [1/2]

template<class T >
Vec3< T > Imath::Vec3< T >::operator* ( const Vec3< T > &  v) const
inline

◆ operator*() [2/2]

template<class T >
Vec3< T > Imath::Vec3< T >::operator* ( a) const
inline

◆ operator*=() [1/2]

template<class T >
const Vec3< T > & Imath::Vec3< T >::operator*= ( const Vec3< T > &  v)
inline

◆ operator*=() [2/2]

template<class T >
const Vec3< T > & Imath::Vec3< T >::operator*= ( a)
inline

◆ operator+()

template<class T >
Vec3< T > Imath::Vec3< T >::operator+ ( const Vec3< T > &  v) const
inline

◆ operator+=()

template<class T >
const Vec3< T > & Imath::Vec3< T >::operator+= ( const Vec3< T > &  v)
inline

◆ operator-() [1/2]

template<class T >
Vec3< T > Imath::Vec3< T >::operator- ( const Vec3< T > &  v) const
inline

◆ operator-() [2/2]

template<class T >
Vec3< T > Imath::Vec3< T >::operator- ( ) const
inline

◆ operator-=()

template<class T >
const Vec3< T > & Imath::Vec3< T >::operator-= ( const Vec3< T > &  v)
inline

◆ operator/() [1/2]

template<class T >
Vec3< T > Imath::Vec3< T >::operator/ ( const Vec3< T > &  v) const
inline

◆ operator/() [2/2]

template<class T >
Vec3< T > Imath::Vec3< T >::operator/ ( a) const
inline

◆ operator/=() [1/2]

template<class T >
const Vec3< T > & Imath::Vec3< T >::operator/= ( const Vec3< T > &  v)
inline

◆ operator/=() [2/2]

template<class T >
const Vec3< T > & Imath::Vec3< T >::operator/= ( a)
inline

◆ operator=()

template<class T >
const Vec3< T > & Imath::Vec3< T >::operator= ( const Vec3< T > &  v)
inline

◆ operator==()

template<class T >
template<class S >
bool Imath::Vec3< T >::operator== ( const Vec3< S > &  v) const
inline

◆ operator[]() [1/2]

template<class T >
T & Imath::Vec3< T >::operator[] ( int  i)
inline

◆ operator[]() [2/2]

template<class T >
const T & Imath::Vec3< T >::operator[] ( int  i) const
inline

◆ operator^()

template<class T >
T Imath::Vec3< T >::operator^ ( const Vec3< T > &  v) const
inline

◆ setValue() [1/2]

template<class T >
template<class S >
void Imath::Vec3< T >::setValue ( a,
b,
c 
)
inline

◆ setValue() [2/2]

template<class T >
template<class S >
void Imath::Vec3< T >::setValue ( const Vec3< S > &  v)
inline

Member Data Documentation

◆ x

template<class T>
T Imath::Vec3< T >::x

◆ y

template<class T>
T Imath::Vec3< T >::y

◆ z

template<class T>
T Imath::Vec3< T >::z

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