Rumba C++ SDK
Imath::Vec2< 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
 
 Vec2 ()
 
 Vec2 (T a)
 
 Vec2 (T a, T b)
 
 Vec2 (const Vec2 &v)
 
template<class S >
 Vec2 (const Vec2< S > &v)
 
const Vec2operator= (const Vec2 &v)
 
template<class S >
void setValue (S a, S b)
 
template<class S >
void setValue (const Vec2< S > &v)
 
template<class S >
void getValue (S &a, S &b) const
 
template<class S >
void getValue (Vec2< S > &v) const
 
T * getValue ()
 
const T * getValue () const
 
template<class S >
bool operator== (const Vec2< S > &v) const
 
template<class S >
bool operator!= (const Vec2< S > &v) const
 
bool equalWithAbsError (const Vec2< T > &v, T e) const
 
bool equalWithRelError (const Vec2< T > &v, T e) const
 
dot (const Vec2 &v) const
 
operator^ (const Vec2 &v) const
 
cross (const Vec2 &v) const
 
operator% (const Vec2 &v) const
 
const Vec2operator+= (const Vec2 &v)
 
Vec2 operator+ (const Vec2 &v) const
 
const Vec2operator-= (const Vec2 &v)
 
Vec2 operator- (const Vec2 &v) const
 
Vec2 operator- () const
 
const Vec2negate ()
 
const Vec2operator*= (const Vec2 &v)
 
const Vec2operator*= (T a)
 
Vec2 operator* (const Vec2 &v) const
 
Vec2 operator* (T a) const
 
const Vec2operator/= (const Vec2 &v)
 
const Vec2operator/= (T a)
 
Vec2 operator/ (const Vec2 &v) const
 
Vec2 operator/ (T a) const
 
length () const
 
length2 () const
 
const Vec2normalize ()
 
const Vec2normalizeExc () throw (Iex::MathExc)
 
const Vec2normalizeNonNull ()
 
Vec2< T > normalized () const
 
Vec2< T > normalizedExc () const throw (Iex::MathExc)
 
Vec2< T > normalizedNonNull () const
 
template<>
short length () const
 
template<>
const Vec2< short > & normalize ()
 
template<>
const Vec2< short > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec2< short > & normalizeNonNull ()
 
template<>
Vec2< short > normalized () const
 
template<>
Vec2< short > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec2< short > normalizedNonNull () const
 
template<>
int length () const
 
template<>
const Vec2< int > & normalize ()
 
template<>
const Vec2< int > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec2< int > & normalizeNonNull ()
 
template<>
Vec2< int > normalized () const
 
template<>
Vec2< int > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec2< int > normalizedNonNull () const
 
template<>
short length () const
 
template<>
const Vec2< short > & normalize ()
 
template<>
const Vec2< short > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec2< short > & normalizeNonNull ()
 
template<>
Vec2< short > normalized () const
 
template<>
Vec2< short > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec2< short > normalizedNonNull () const
 
template<>
int length () const
 
template<>
const Vec2< int > & normalize ()
 
template<>
const Vec2< int > & normalizeExc () throw(Iex::MathExc)
 
template<>
const Vec2< int > & normalizeNonNull ()
 
template<>
Vec2< int > normalized () const
 
template<>
Vec2< int > normalizedExc () const throw(Iex::MathExc)
 
template<>
Vec2< 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
 

Member Typedef Documentation

◆ BaseType

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

Constructor & Destructor Documentation

◆ Vec2() [1/5]

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

◆ Vec2() [2/5]

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

◆ Vec2() [3/5]

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

◆ Vec2() [4/5]

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

◆ Vec2() [5/5]

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

Member Function Documentation

◆ baseTypeEpsilon()

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

◆ baseTypeMax()

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

◆ baseTypeMin()

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

◆ baseTypeSmallest()

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

◆ cross()

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

◆ dimensions()

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

◆ dot()

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

◆ equalWithAbsError()

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

◆ equalWithRelError()

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

◆ getValue() [1/4]

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

◆ getValue() [2/4]

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

◆ getValue() [3/4]

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

◆ getValue() [4/4]

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

◆ length() [1/5]

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

◆ length() [2/5]

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

◆ length() [3/5]

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

◆ length() [4/5]

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

◆ length() [5/5]

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

◆ length2()

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

◆ negate()

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

◆ normalize() [1/5]

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

◆ normalize() [2/5]

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

◆ normalize() [3/5]

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

◆ normalize() [4/5]

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

◆ normalize() [5/5]

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

◆ normalized() [1/5]

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

◆ normalized() [2/5]

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

◆ normalized() [3/5]

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

◆ normalized() [4/5]

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

◆ normalized() [5/5]

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

◆ normalizedExc() [1/5]

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

◆ normalizedExc() [2/5]

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

◆ normalizedExc() [3/5]

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

◆ normalizedExc() [4/5]

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

◆ normalizedExc() [5/5]

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

◆ normalizedNonNull() [1/5]

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

◆ normalizedNonNull() [2/5]

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

◆ normalizedNonNull() [3/5]

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

◆ normalizedNonNull() [4/5]

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

◆ normalizedNonNull() [5/5]

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

◆ normalizeExc() [1/5]

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

◆ normalizeExc() [2/5]

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

◆ normalizeExc() [3/5]

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

◆ normalizeExc() [4/5]

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

◆ normalizeExc() [5/5]

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

◆ normalizeNonNull() [1/5]

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

◆ normalizeNonNull() [2/5]

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

◆ normalizeNonNull() [3/5]

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

◆ normalizeNonNull() [4/5]

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

◆ normalizeNonNull() [5/5]

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

◆ operator!=()

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

◆ operator%()

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator*=() [1/2]

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

◆ operator*=() [2/2]

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-() [1/2]

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

◆ operator-() [2/2]

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

◆ operator-=()

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

◆ operator/() [1/2]

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

◆ operator/() [2/2]

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

◆ operator/=() [1/2]

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

◆ operator/=() [2/2]

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

◆ operator=()

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

◆ operator==()

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ operator^()

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

◆ setValue() [1/2]

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

◆ setValue() [2/2]

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

Member Data Documentation

◆ x

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

◆ y

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

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