fs::mth::Vec2_T< T > Class Template Reference

#include <fsVec2.h>

Collaboration diagram for fs::mth::Vec2_T< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename T>
class fs::mth::Vec2_T< T >

Two dimensional vector representation (incomplete).
Examples:

_tests/fsMath/main.cpp.

Definition at line 25 of file fsVec2.h.

Public Member Functions

 Vec2_T ()
 Vec2_T (T x, T y)
 Vec2_T (const Vec2_T &RHS)
Vec2_Toperator= (const Vec2_T &RHS)
bool operator== (const Vec2_T &RHS) const
bool operator!= (const Vec2_T &RHS) const
Vec2_T operator- () const
Vec2_T operator+ (const Vec2_T &RHS) const
Vec2_Toperator+= (const Vec2_T &RHS)
Vec2_T operator- (const Vec2_T &RHS) const
Vec2_Toperator-= (const Vec2_T &RHS)
operator * (const Vec2_T &RHS) const
Vec2_T operator * (T t) const
Vec2_Toperator *= (T t)
Len () const
 Returns the length.
Len2 () const
 Returns the squared length.
Norm ()
 Normalizes the vector and return its original length.

Public Attributes

x
y


Constructor & Destructor Documentation

template<typename T>
fs::mth::Vec2_T< T >::Vec2_T (  )  [inline]

Definition at line 69 of file fsVec2.h.

template<typename T>
fs::mth::Vec2_T< T >::Vec2_T ( x,
y 
) [inline]

Definition at line 74 of file fsVec2.h.

template<typename T>
fs::mth::Vec2_T< T >::Vec2_T ( const Vec2_T< T > &  RHS  )  [inline]

Definition at line 81 of file fsVec2.h.


Member Function Documentation

template<typename T>
T fs::mth::Vec2_T< T >::Len (  )  const [inline]

Returns the length.

Definition at line 168 of file fsVec2.h.

References fs::mth::Vec2_T< T >::Len2(), and fs::mth::Sqrt().

Here is the call graph for this function:

template<typename T>
T fs::mth::Vec2_T< T >::Len2 (  )  const [inline]

Returns the squared length.

Definition at line 174 of file fsVec2.h.

template<typename T>
T fs::mth::Vec2_T< T >::Norm (  )  [inline]

Normalizes the vector and return its original length.

Definition at line 180 of file fsVec2.h.

References fs::mth::Vec2_T< T >::Len2(), fs::mth::SqrtInv(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

Here is the call graph for this function:

template<typename T>
Vec2_T< T > fs::mth::Vec2_T< T >::operator * ( t  )  const [inline]

Definition at line 148 of file fsVec2.h.

References fs::mth::Vec2_T< T >::Vec2_T(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

Here is the call graph for this function:

template<typename T>
T fs::mth::Vec2_T< T >::operator * ( const Vec2_T< T > &  RHS  )  const [inline]

Definition at line 142 of file fsVec2.h.

References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

template<typename T>
Vec2_T< T > & fs::mth::Vec2_T< T >::operator *= ( t  )  [inline]

Definition at line 160 of file fsVec2.h.

References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

template<typename T>
bool fs::mth::Vec2_T< T >::operator!= ( const Vec2_T< T > &  RHS  )  const [inline]

Definition at line 102 of file fsVec2.h.

References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

template<typename T>
Vec2_T< T > fs::mth::Vec2_T< T >::operator+ ( const Vec2_T< T > &  RHS  )  const [inline]

Definition at line 114 of file fsVec2.h.

References fs::mth::Vec2_T< T >::Vec2_T(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

Here is the call graph for this function:

template<typename T>
Vec2_T< T > & fs::mth::Vec2_T< T >::operator+= ( const Vec2_T< T > &  RHS  )  [inline]

Definition at line 120 of file fsVec2.h.

References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

template<typename T>
Vec2_T< T > fs::mth::Vec2_T< T >::operator- ( const Vec2_T< T > &  RHS  )  const [inline]

Definition at line 128 of file fsVec2.h.

References fs::mth::Vec2_T< T >::Vec2_T(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

Here is the call graph for this function:

template<typename T>
Vec2_T< T > fs::mth::Vec2_T< T >::operator- (  )  const [inline]

Definition at line 108 of file fsVec2.h.

References fs::mth::Vec2_T< T >::Vec2_T(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

Here is the call graph for this function:

template<typename T>
Vec2_T< T > & fs::mth::Vec2_T< T >::operator-= ( const Vec2_T< T > &  RHS  )  [inline]

Definition at line 134 of file fsVec2.h.

References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

template<typename T>
Vec2_T< T > & fs::mth::Vec2_T< T >::operator= ( const Vec2_T< T > &  RHS  )  [inline]

Definition at line 88 of file fsVec2.h.

References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.

template<typename T>
bool fs::mth::Vec2_T< T >::operator== ( const Vec2_T< T > &  RHS  )  const [inline]

Definition at line 96 of file fsVec2.h.

References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.


Member Data Documentation

template<typename T>
T fs::mth::Vec2_T< T >::x

Definition at line 65 of file fsVec2.h.

template<typename T>
T fs::mth::Vec2_T< T >::y

Definition at line 65 of file fsVec2.h.


The documentation for this class was generated from the following file:

FipS' Code (Thu Feb 15 22:43:49 2007) - (c) Filip STOKLAS (FipS) - [ www ] [ Guest Book ]