math::Vector2< T > Class Template Reference

The vector2 class. More...

#include <Vector2.h>

Inheritance diagram for math::Vector2< T >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Vector2 ()
 Vector2 (T x, T y)
bool operator== (const Vector2 &vector) const
Vector2< T > operator+ (const Vector2 &vector) const
Vector2< T > & operator+= (const Vector2 &vector)
Vector2< T > negative () const
const char * toString ()

Public Attributes

x
y

Static Public Attributes

static const Vector2 UNIT_ZERO


Detailed Description

template<class T>
class math::Vector2< T >

The vector2 class.

Constructor & Destructor Documentation

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

Constructor

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

Constructor


Member Function Documentation

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

Vectors comparison

Parameters:
vector The outside vector
Returns:
result

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

Vectors operation

Parameters:
vector The outside vector
Returns:
the vector result

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

Vectors attribution

Parameters:
vector The outside vector
Returns:
the vector result

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

Negate the vector values

Returns:
the vector result

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

See also:
Object::toString()

Implements Object.


Member Data Documentation

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

Predefined vector property

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

x value

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

y 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