_Vector4< Type > Class Template Reference

#include <_Vector4.h>

Inheritance diagram for _Vector4< Type >:

_Tuple4< Type > List of all members.

Public Member Functions

 _Vector4 ()
 _Vector4 (Type x, Type y=0, Type z=0, Type w=0)
 _Vector4 (const _Tuple4< double > &t)
 _Vector4 (const _Tuple4< float > &t)
 _Vector4 (const _Tuple3< double > &t)
 _Vector4 (const _Tuple3< float > &t)
 _Vector4 (const Type t[4])
Type angle (const _Vector4< Type > &v) const
Type dot (const _Vector4< Type > &v) const
Type dot (const _Point3< Type > &v) const
Type lengthSquared () const
Type length () const
void normalize ()
void normalize (const _Vector4< Type > &v)

Detailed Description

template<class Type>
class _Vector4< Type >

Definition at line 16 of file _Vector4.h.


Constructor & Destructor Documentation

template<class Type>
_Vector4< Type >::_Vector4  )  [inline]
 

template<class Type>
_Vector4< Type >::_Vector4 Type  x,
Type  y = 0,
Type  z = 0,
Type  w = 0
[inline, explicit]
 

template<class Type>
_Vector4< Type >::_Vector4 const _Tuple4< double > &  t  )  [inline]
 

template<class Type>
_Vector4< Type >::_Vector4 const _Tuple4< float > &  t  )  [inline]
 

template<class Type>
_Vector4< Type >::_Vector4 const _Tuple3< double > &  t  )  [inline]
 

template<class Type>
_Vector4< Type >::_Vector4 const _Tuple3< float > &  t  )  [inline]
 

template<class Type>
_Vector4< Type >::_Vector4 const Type  t[4]  )  [inline]
 


Member Function Documentation

template<class Type>
Type _Vector4< Type >::angle const _Vector4< Type > &  v  )  const [inline]
 

Definition at line 45 of file _Vector4.h.

template<class Type>
Type _Vector4< Type >::dot const _Point3< Type > &  v  )  const [inline]
 

Definition at line 59 of file _Vector4.h.

References _Tuple3< Type >::x, _Tuple3< Type >::y, and _Tuple3< Type >::z.

template<class Type>
Type _Vector4< Type >::dot const _Vector4< Type > &  v  )  const [inline]
 

Definition at line 54 of file _Vector4.h.

References _Tuple4< Type >::w, _Tuple4< Type >::x, _Tuple4< Type >::y, and _Tuple4< Type >::z.

template<class Type>
Type _Vector4< Type >::length  )  const [inline]
 

Definition at line 67 of file _Vector4.h.

References _Tuple4< Type >::norm().

Referenced by _Vector4< Type >::normalize().

template<class Type>
Type _Vector4< Type >::lengthSquared  )  const [inline]
 

Definition at line 63 of file _Vector4.h.

References _Tuple4< Type >::normSquared().

template<class Type>
void _Vector4< Type >::normalize const _Vector4< Type > &  v  )  [inline]
 

Definition at line 75 of file _Vector4.h.

References _Vector4< Type >::length(), _Tuple4< Type >::set(), _Tuple4< Type >::w, _Tuple4< Type >::x, _Tuple4< Type >::y, and _Tuple4< Type >::z.

template<class Type>
void _Vector4< Type >::normalize  )  [inline]
 

Definition at line 71 of file _Vector4.h.


The documentation for this class was generated from the following file:
Generated on Thu Sep 29 13:39:45 2005 for vecmath by  doxygen 1.4.4