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

#include <ImathVec.h>

Public Types

typedef T BaseType
 

Public Member Functions

T & operator[] (int i)
 
const T & operator[] (int i) const
 
 Vec4 ()
 
 Vec4 (T a)
 
 Vec4 (T a, T b, T c, T d)
 
 Vec4 (const Vec4 &v)
 
template<class S >
 Vec4 (const Vec4< S > &v)
 
const Vec4operator= (const Vec4 &v)
 
template<class S >
 Vec4 (const Vec3< S > &v)
 
template<class S >
bool operator== (const Vec4< S > &v) const
 
template<class S >
bool operator!= (const Vec4< S > &v) const
 
bool equalWithAbsError (const Vec4< T > &v, T e) const
 
bool equalWithRelError (const Vec4< T > &v, T e) const
 
dot (const Vec4 &v) const
 
operator^ (const Vec4 &v) const
 
const Vec4operator+= (const Vec4 &v)
 
Vec4 operator+ (const Vec4 &v) const
 
const Vec4operator-= (const Vec4 &v)
 
Vec4 operator- (const Vec4 &v) const
 
Vec4 operator- () const
 
const Vec4negate ()
 
const Vec4operator*= (const Vec4 &v)
 
const Vec4operator*= (T a)
 
Vec4 operator* (const Vec4 &v) const
 
Vec4 operator* (T a) const
 
const Vec4operator/= (const Vec4 &v)
 
const Vec4operator/= (T a)
 
Vec4 operator/ (const Vec4 &v) const
 
Vec4 operator/ (T a) const
 
length () const
 
length2 () const
 
const Vec4normalize ()
 
const Vec4normalizeExc () throw (Iex::MathExc)
 
const Vec4normalizeNonNull ()
 
Vec4< T > normalized () const
 
Vec4< T > normalizedExc () const throw (Iex::MathExc)
 
Vec4< T > normalizedNonNull () const
 
template<>
short length () const
 
template<>
const Vec4< short > & normalize ()
 
template<>
const Vec4< short > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec4< short > & normalizeNonNull ()
 
template<>
Vec4< short > normalized () const
 
template<>
Vec4< short > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec4< short > normalizedNonNull () const
 
template<>
int length () const
 
template<>
const Vec4< int > & normalize ()
 
template<>
const Vec4< int > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec4< int > & normalizeNonNull ()
 
template<>
Vec4< int > normalized () const
 
template<>
Vec4< int > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec4< int > normalizedNonNull () const
 
template<>
short length () const
 
template<>
const Vec4< short > & normalize ()
 
template<>
const Vec4< short > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec4< short > & normalizeNonNull ()
 
template<>
Vec4< short > normalized () const
 
template<>
Vec4< short > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec4< short > normalizedNonNull () const
 
template<>
int length () const
 
template<>
const Vec4< int > & normalize ()
 
template<>
const Vec4< int > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec4< int > & normalizeNonNull ()
 
template<>
Vec4< int > normalized () const
 
template<>
Vec4< int > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec4< 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
 
w
 

Member Typedef Documentation

◆ BaseType

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

Constructor & Destructor Documentation

◆ Vec4() [1/6]

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

◆ Vec4() [2/6]

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

◆ Vec4() [3/6]

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

◆ Vec4() [4/6]

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

◆ Vec4() [5/6]

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

◆ Vec4() [6/6]

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

Member Function Documentation

◆ baseTypeEpsilon()

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

◆ baseTypeMax()

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

◆ baseTypeMin()

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

◆ baseTypeSmallest()

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

◆ dimensions()

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

◆ dot()

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

◆ equalWithAbsError()

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

◆ equalWithRelError()

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

◆ length() [1/5]

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

◆ length() [2/5]

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

◆ length() [3/5]

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

◆ length() [4/5]

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

◆ length() [5/5]

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

◆ length2()

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

◆ negate()

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

◆ normalize() [1/5]

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

◆ normalize() [2/5]

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

◆ normalize() [3/5]

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

◆ normalize() [4/5]

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

◆ normalize() [5/5]

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

◆ normalized() [1/5]

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

◆ normalized() [2/5]

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

◆ normalized() [3/5]

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

◆ normalized() [4/5]

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

◆ normalized() [5/5]

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

◆ normalizedExc() [1/5]

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

◆ normalizedExc() [2/5]

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

◆ normalizedExc() [3/5]

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

◆ normalizedExc() [4/5]

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

◆ normalizedExc() [5/5]

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

◆ normalizedNonNull() [1/5]

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

◆ normalizedNonNull() [2/5]

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

◆ normalizedNonNull() [3/5]

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

◆ normalizedNonNull() [4/5]

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

◆ normalizedNonNull() [5/5]

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

◆ normalizeExc() [1/5]

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

◆ normalizeExc() [2/5]

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

◆ normalizeExc() [3/5]

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

◆ normalizeExc() [4/5]

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

◆ normalizeExc() [5/5]

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

◆ normalizeNonNull() [1/5]

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

◆ normalizeNonNull() [2/5]

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

◆ normalizeNonNull() [3/5]

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

◆ normalizeNonNull() [4/5]

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

◆ normalizeNonNull() [5/5]

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

◆ operator!=()

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator*=() [1/2]

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

◆ operator*=() [2/2]

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-() [1/2]

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

◆ operator-() [2/2]

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

◆ operator-=()

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

◆ operator/() [1/2]

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

◆ operator/() [2/2]

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

◆ operator/=() [1/2]

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

◆ operator/=() [2/2]

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

◆ operator=()

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

◆ operator==()

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ operator^()

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

Member Data Documentation

◆ w

template<class T>
T Imath::Vec4< T >::w

◆ x

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

◆ y

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

◆ z

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

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