math::Vector3< T > Class Template Reference

The vector3 class. More...

#include <Vector3.h>

Inheritance diagram for math::Vector3< T >:

Inheritance graph
[legend]
Collaboration diagram for math::Vector3< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Vector3 ()
 Vector3 (T x, T y, T z)
bool operator== (const Vector3 &vector) const
Vector3< T > operator+ (const Vector3 &vector) const
Vector3< T > & operator+= (const Vector3 &vector)
Vector3< T > negative () const
void normalize ()
const char * toString ()

Public Attributes

x
y
z

Static Public Attributes

static const Vector3 UNIT_ZERO


Detailed Description

template<class T>
class math::Vector3< T >

The vector3 class.

Constructor & Destructor Documentation

template<class T>
math::Vector3< T >::Vector3 (  ) 

Constructor

template<class T>
math::Vector3< T >::Vector3 ( x,
y,
z 
)

Constructor


Member Function Documentation

template<class T>
bool math::Vector3< T >::operator== ( const Vector3< T > &  vector  )  const

Vectors comparison

Parameters:
vector The outside vector
Returns:
result

template<class T>
Vector3<T> math::Vector3< T >::operator+ ( const Vector3< T > &  vector  )  const

Vectors operation

Parameters:
vector The outside vector
Returns:
the vector result

template<class T>
Vector3<T>& math::Vector3< T >::operator+= ( const Vector3< T > &  vector  ) 

Vectors attribution

Parameters:
vector The outside vector
Returns:
the vector result

template<class T>
Vector3<T> math::Vector3< T >::negative (  )  const

Negate the vector values

Returns:
the vector result

template<class T>
void math::Vector3< T >::normalize (  ) 

Normalize the vector values

template<class T>
const char* math::Vector3< T >::toString (  )  [inline, virtual]

See also:
Object::toString()

Implements Object.


Member Data Documentation

template<class T>
const Vector3 math::Vector3< T >::UNIT_ZERO [static]

Predefined vector property

template<class T>
T math::Vector3< T >::x

x value

template<class T>
T math::Vector3< T >::y

y value

template<class T>
T math::Vector3< T >::z

z value


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

Generated on Mon Mar 3 10:53:10 2008 for Aika by  doxygen 1.5.5