_Point2< Type > Class Template Reference

#include <_Point2.h>

Inheritance diagram for _Point2< Type >:

_Tuple2< Type > List of all members.

Public Member Functions

 _Point2 ()
 _Point2 (Type x, Type y=0)
 _Point2 (const _Tuple2< double > &v)
 _Point2 (const _Tuple2< float > &v)
 _Point2 (const Type t[2])
Type distanceSquared (const _Point2< Type > &p) const
Type distance (const _Point2< Type > &p) const
Type distanceL1 (const _Point2< Type > &p) const
Type distanceLinf (const _Point2< Type > &p) const

Detailed Description

template<class Type>
class _Point2< Type >

Definition at line 12 of file _Point2.h.


Constructor & Destructor Documentation

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

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

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

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

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


Member Function Documentation

template<class Type>
Type _Point2< Type >::distance const _Point2< Type > &  p  )  const [inline]
 

Definition at line 37 of file _Point2.h.

template<class Type>
Type _Point2< Type >::distanceL1 const _Point2< Type > &  p  )  const [inline]
 

Definition at line 41 of file _Point2.h.

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

template<class Type>
Type _Point2< Type >::distanceLinf const _Point2< Type > &  p  )  const [inline]
 

Definition at line 45 of file _Point2.h.

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

template<class Type>
Type _Point2< Type >::distanceSquared const _Point2< Type > &  p  )  const [inline]
 

Definition at line 33 of file _Point2.h.

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


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