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

math::Vec< T, S > Class Template Reference

almost completly generic and free Vector-class More...

#include <vec.hpp>

Inheritance diagram for math::Vec< T, S >:

Inheritance graph
[legend]
Collaboration diagram for math::Vec< T, S >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T ValType
typedef const T ConstValType
typedef T * ValTypePtr
typedef const T * ConstValTypePtr
typedef Vec< ValType, S > VecType
typedef const Vec< ValType,
S > 
ConstVecType
typedef Traits< Vec< T, S > > Trait
typedef Traits< T > ValTrait

Public Member Functions

ValType norm2 () const
 quadric norm

ValType norm () const
 the 'norm' or 'length'

VecTypenormalize ()
 normalize

Constructors
 Vec ()
 Vec (ConstValType &scalar)
 Vec (ConstValTypePtr valptr)
 Vec (ConstVecType &vec)
 Vec (ConstValType &x, ConstValType &y, ConstValType &z)
Operators
VecTypeoperator= (ConstValType &scalar)
VecTypeoperator= (ConstValTypePtr valptr)
VecTypeoperator= (ConstVecType &vec)
VecType operator+ (ConstVecType &vec) const
VecType operator- (ConstVecType &vec) const
VecTypeoperator+= (ConstVecType &vec)
VecTypeoperator-= (ConstVecType &vec)
VecType operator * (ConstValType &scalar) const
VecType operator/ (ConstValType &scalar) const
VecTypeoperator *= (ConstValType &scalar)
VecTypeoperator/= (ConstValType &scalar)

Detailed Description

template<typename T, int S>
class math::Vec< T, S >

almost completly generic and free Vector-class

Definition at line 106 of file vec.hpp.


Member Typedef Documentation

template<typename T, int S>
typedef const T math::Vec< T, S >::ConstValType
 

Definition at line 111 of file vec.hpp.

template<typename T, int S>
typedef const T* math::Vec< T, S >::ConstValTypePtr
 

Definition at line 113 of file vec.hpp.

template<typename T, int S>
typedef const Vec<ValType, S> math::Vec< T, S >::ConstVecType
 

Definition at line 116 of file vec.hpp.

template<typename T, int S>
typedef Traits<Vec<T, S> > math::Vec< T, S >::Trait
 

Definition at line 118 of file vec.hpp.

template<typename T, int S>
typedef Traits<T> math::Vec< T, S >::ValTrait
 

Definition at line 119 of file vec.hpp.

template<typename T, int S>
typedef T math::Vec< T, S >::ValType
 

Definition at line 110 of file vec.hpp.

template<typename T, int S>
typedef T* math::Vec< T, S >::ValTypePtr
 

Definition at line 112 of file vec.hpp.

template<typename T, int S>
typedef Vec<ValType, S> math::Vec< T, S >::VecType
 

Definition at line 115 of file vec.hpp.


Constructor & Destructor Documentation

template<typename T, int S>
math::Vec< T, S >::Vec  )  [inline]
 

Definition at line 127 of file vec.hpp.

template<typename T, int S>
math::Vec< T, S >::Vec ConstValType scalar  )  [inline]
 

Definition at line 128 of file vec.hpp.

template<typename T, int S>
math::Vec< T, S >::Vec ConstValTypePtr  valptr  )  [inline]
 

Definition at line 129 of file vec.hpp.

template<typename T, int S>
math::Vec< T, S >::Vec ConstVecType vec  )  [inline]
 

Definition at line 130 of file vec.hpp.

template<typename T, int S>
math::Vec< T, S >::Vec ConstValType x,
ConstValType y,
ConstValType z
 

only valid for Vec<T, 3>, otherwise compile error

Definition at line 328 of file vec.hpp.


Member Function Documentation

template<typename T, int S>
T math::Vec< T, S >::norm  )  const [inline]
 

the 'norm' or 'length'

Definition at line 311 of file vec.hpp.

template<typename T, int S>
T math::Vec< T, S >::norm2  )  const [inline]
 

quadric norm

Definition at line 302 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType & math::Vec< T, S >::normalize  )  [inline]
 

normalize

Definition at line 317 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType math::Vec< T, S >::operator * ConstValType scalar  )  const [inline]
 

Definition at line 289 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType & math::Vec< T, S >::operator *= ConstValType scalar  )  [inline]
 

Definition at line 265 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType math::Vec< T, S >::operator+ ConstVecType vec  )  const [inline]
 

Definition at line 277 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType & math::Vec< T, S >::operator+= ConstVecType vec  )  [inline]
 

Definition at line 252 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType math::Vec< T, S >::operator- ConstVecType vec  )  const [inline]
 

Definition at line 283 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType & math::Vec< T, S >::operator-= ConstVecType vec  )  [inline]
 

Definition at line 258 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType math::Vec< T, S >::operator/ ConstValType scalar  )  const [inline]
 

Definition at line 295 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType & math::Vec< T, S >::operator/= ConstValType scalar  )  [inline]
 

Definition at line 271 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType & math::Vec< T, S >::operator= ConstVecType vec  )  [inline]
 

Definition at line 242 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType & math::Vec< T, S >::operator= ConstValTypePtr  valptr  )  [inline]
 

Definition at line 236 of file vec.hpp.

template<typename T, int S>
Vec< T, S >::VecType & math::Vec< T, S >::operator= ConstValType scalar  )  [inline]
 

Definition at line 230 of file vec.hpp.

Referenced by math::Vec< T, H >::Vec().


The documentation for this class was generated from the following file:
Generated on Tue Sep 2 11:33:30 2003 for math by doxygen 1.3.2