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 |
T | x |
T | 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
The documentation for this struct was generated from the following file: