Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

salt::TVector2< DATATYPE, TYPE > Class Template Reference

TVector2 is a two dimensional version of TVector. More...

#include <tvector.h>

Inheritance diagram for salt::TVector2< DATATYPE, TYPE >:

Inheritance graph
[legend]
Collaboration diagram for salt::TVector2< DATATYPE, TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TVector2 ()
 constructs an undefined TVector2
 TVector2 (DATATYPE x, DATATYPE y)
 constructs a TVector2 from x and y
f_inline DATATYPE & x ()
 returns a reference to the first component
f_inline const DATATYPE & x () const
 returns a constant reference to the first component
f_inline DATATYPE & y ()
 returns a reference to the second component
f_inline const DATATYPE & y () const
 returns a constant reference to the second component
f_inline const TYPE & Set (const DATATYPE &x, const DATATYPE &y)
 sets up the vector from x and y

Detailed Description

template<typename DATATYPE, class TYPE>
class salt::TVector2< DATATYPE, TYPE >

TVector2 is a two dimensional version of TVector.

Definition at line 199 of file tvector.h.


Constructor & Destructor Documentation

template<typename DATATYPE, class TYPE>
salt::TVector2< DATATYPE, TYPE >::TVector2  )  [inline]
 

constructs an undefined TVector2

Definition at line 203 of file tvector.h.

template<typename DATATYPE, class TYPE>
salt::TVector2< DATATYPE, TYPE >::TVector2 DATATYPE  x,
DATATYPE  y
[inline]
 

constructs a TVector2 from x and y

Definition at line 206 of file tvector.h.


Member Function Documentation

template<typename DATATYPE, class TYPE>
f_inline const TYPE& salt::TVector2< DATATYPE, TYPE >::Set const DATATYPE &  x,
const DATATYPE &  y
[inline]
 

sets up the vector from x and y

Definition at line 228 of file tvector.h.

Referenced by kerosin::Font::Init(), salt::AABB2::Init(), and salt::TVector2< float, Vector2f >::TVector2().

template<typename DATATYPE, class TYPE>
f_inline const DATATYPE& salt::TVector2< DATATYPE, TYPE >::x  )  const [inline]
 

returns a constant reference to the first component

Definition at line 216 of file tvector.h.

template<typename DATATYPE, class TYPE>
f_inline DATATYPE& salt::TVector2< DATATYPE, TYPE >::x  )  [inline]
 

returns a reference to the first component

Definition at line 212 of file tvector.h.

Referenced by salt::AABB2::Contains(), kerosin::Font::DrawString(), salt::AABB2::Encapsulate(), salt::AABB2::GetMiddle(), salt::AABB2::GetWidth(), salt::AABB2::Intersects(), salt::Matrix::operator *(), and salt::AABB2::Widen().

template<typename DATATYPE, class TYPE>
f_inline const DATATYPE& salt::TVector2< DATATYPE, TYPE >::y  )  const [inline]
 

returns a constant reference to the second component

Definition at line 224 of file tvector.h.

template<typename DATATYPE, class TYPE>
f_inline DATATYPE& salt::TVector2< DATATYPE, TYPE >::y  )  [inline]
 

returns a reference to the second component

Definition at line 220 of file tvector.h.

Referenced by salt::AABB2::Contains(), kerosin::Font::DrawString(), salt::AABB2::Encapsulate(), salt::AABB2::GetHeight(), salt::AABB2::GetMiddle(), salt::AABB2::Intersects(), salt::Matrix::operator *(), and salt::AABB2::Widen().


The documentation for this class was generated from the following file:
Generated on Thu Apr 6 15:49:28 2006 for rcssserver3d by  doxygen 1.4.4