_Vector2< Type > Class Template Reference

#include <_Vector2.h>

Inheritance diagram for _Vector2< Type >:

_Tuple2< Type > List of all members.

Public Member Functions

 _Vector2 ()
 _Vector2 (Type x, Type y=0)
 _Vector2 (const _Tuple2< double > &v)
 _Vector2 (const _Tuple2< float > &v)
 _Vector2 (const Type t[2])
Type angle (const _Vector2< Type > &v) const
Type dot (const _Vector2< Type > &v) const
Type lengthSquared () const
Type length () const
void normalize ()
void normalize (const _Vector2< Type > &v)

Detailed Description

template<class Type>
class _Vector2< Type >

Definition at line 11 of file _Vector2.h.


Constructor & Destructor Documentation

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

template<class Type>
_Vector2< Type >::_Vector2 Type  x,
Type  y = 0
[inline, explicit]
 

template<class Type>
_Vector2< Type >::_Vector2 const _Tuple2< double > &  v  )  [inline]
 

template<class Type>
_Vector2< Type >::_Vector2 const _Tuple2< float > &  v  )  [inline]
 

template<class Type>
_Vector2< Type >::_Vector2 const Type  t[2]  )  [inline]
 


Member Function Documentation

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

Definition at line 33 of file _Vector2.h.

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

Definition at line 42 of file _Vector2.h.

References _Tuple2< Type >::x, and _Tuple2< Type >::y.

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

Definition at line 50 of file _Vector2.h.

References _Tuple2< Type >::norm().

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

Definition at line 46 of file _Vector2.h.

References _Tuple2< Type >::normSquared().

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

Definition at line 58 of file _Vector2.h.

References _Tuple2< Type >::set(), _Tuple2< Type >::x, and _Tuple2< Type >::y.

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

Definition at line 54 of file _Vector2.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