Vector2< T > Struct Template Reference

Collaboration diagram for Vector2< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
struct Vector2< T >

Template class for representing a 2D point (x and y coordinate).

Definition at line 51 of file transformation2.hh.

Public Member Functions

 Vector2 (T x, T y)
 Vector2 ()
const T & x () const
const T & y () const
T & x ()
T & y ()
norm2 () const

Public Attributes

values [2]
 container for x and y


Constructor & Destructor Documentation

template<class T>
Vector2< T >::Vector2 ( x,
y 
) [inline]

Constructor

Definition at line 55 of file transformation2.hh.

template<class T>
Vector2< T >::Vector2 (  )  [inline]

Default constructor which sets x and y to 0

Definition at line 57 of file transformation2.hh.


Member Function Documentation

template<class T>
const T& Vector2< T >::x (  )  const [inline]

Returns:
Const reference to x

Definition at line 60 of file transformation2.hh.

template<class T>
const T& Vector2< T >::y (  )  const [inline]

Returns:
Const reference to y

Definition at line 62 of file transformation2.hh.

template<class T>
T& Vector2< T >::x (  )  [inline]

Returns:
Reference to x

Definition at line 65 of file transformation2.hh.

template<class T>
T& Vector2< T >::y (  )  [inline]

Returns:
Reference to y

Definition at line 67 of file transformation2.hh.

template<class T>
T Vector2< T >::norm2 (  )  const [inline]

Returns:
Norm of the vector

Definition at line 70 of file transformation2.hh.


The documentation for this struct was generated from the following file:
Generated on Mon Nov 12 11:43:02 2007 for TORO by  doxygen 1.5.0