Vec2< T > Struct Template Reference

2D Vector structure More...

#include <Types/Vec2.h>

List of all members.

Public Member Functions

 Vec2 (const T &x, const T &y)
 Basic constructor.
bool operator== (const Vec2< T > &v) const
 equality operator

Public Attributes

x
y

Detailed Description

template<typename T>
struct Vec2< T >

2D Vector structure

2D vector containing two fileds (x and y).


Constructor & Destructor Documentation

template<typename T>
Vec2< T >::Vec2 ( const T &  x,
const T &  y 
) [inline]

Basic constructor.

Parameters:
x the value on the x axis
y the value on the y axis

Member Function Documentation

template<typename T>
bool Vec2< T >::operator== ( const Vec2< T > &  v  )  const [inline]

equality operator

Parameters:
v the second vector to compare against

Member Data Documentation

template<typename T>
T Vec2< T >::x

The value on the x axis

template<typename T>
T Vec2< T >::y

The value on the y axis


The documentation for this struct was generated from the following file:
 All Classes Functions Variables Typedefs
Generated on Thu Oct 6 22:11:38 2011 for WE_Kit by  doxygen 1.6.3