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

gul::hpoint2 Class Template Reference

#include <gul_types.h>

List of all members.

Public Methods

weight () const
 hpoint2 ()
template<class T2>  hpoint2 (const T2 &ax, const T2 &ay, const T2 &aw)
hpoint2< T > & operator+= (const hpoint2< T > &a)
hpoint2< T > & operator-= (const hpoint2< T > &a)
hpoint2< T > & operator *= (T &a)
const T & operator[] (size_t i) const
 operator vec4 () const

Static Public Methods

int dim ()
bool hom ()

Public Attributes

x
y
w

template<class T>
class gul::hpoint2< T >


Constructor & Destructor Documentation

template<class T>
gul::hpoint2< T >::hpoint2   [inline]
 

template<class T>
template<class T2>
gul::hpoint2< T >::hpoint2 const T2 &    ax,
const T2 &    ay,
const T2 &    aw
[inline]
 


Member Function Documentation

template<class T>
int gul::hpoint2< T >::dim   [inline, static]
 

Definition at line 965 of file gul_types.h.

00965 { return 3; }

template<class T>
bool gul::hpoint2< T >::hom   [inline, static]
 

Definition at line 966 of file gul_types.h.

00966 { return true; }

template<class T>
hpoint2<T>& gul::hpoint2< T >::operator *= T &    a [inline]
 

Definition at line 986 of file gul_types.h.

References w, x, and y.

00987   {
00988     x *= a; y *= a; w *= a;
00989     return *this;
00990   }

template<class T>
gul::hpoint2< T >::operator vec4   const [inline]
 

Definition at line 993 of file gul_types.h.

References w, x, and y.

00994   {
00995     vec4<T> v;
00996     v[0] = x; v[1] = y; v[2] = 0; v[3] = w;
00997     return v;
00998   }

template<class T>
hpoint2<T>& gul::hpoint2< T >::operator+= const hpoint2< T > &    a [inline]
 

Definition at line 976 of file gul_types.h.

References w, x, and y.

00977   {
00978     x += a.x; y += a.y; w += a.w;
00979     return *this;
00980   }

template<class T>
hpoint2<T>& gul::hpoint2< T >::operator-= const hpoint2< T > &    a [inline]
 

Definition at line 981 of file gul_types.h.

References w, x, and y.

00982   {
00983     x -= a.x; y -= a.y; w -= a.w;
00984     return *this;
00985   }

template<class T>
const T& gul::hpoint2< T >::operator[] size_t    i const [inline]
 

Definition at line 991 of file gul_types.h.

References x.

00991 { return (&x)[i]; }

template<class T>
T gul::hpoint2< T >::weight   const [inline]
 

Definition at line 967 of file gul_types.h.

References w, x, and y.

00967 { return w; }


Member Data Documentation

template<class T>
T gul::hpoint2::w
 

Definition at line 964 of file gul_types.h.

Referenced by operator *=(), operator vec4(), operator+=(), operator-=(), and weight().

template<class T>
T gul::hpoint2::x
 

Definition at line 962 of file gul_types.h.

Referenced by operator *=(), operator vec4(), operator+=(), operator-=(), operator[](), and weight().

template<class T>
T gul::hpoint2::y
 

Definition at line 963 of file gul_types.h.

Referenced by operator *=(), operator vec4(), operator+=(), operator-=(), and weight().


The documentation for this class was generated from the following file:
Generated on Mon Jan 21 04:17:57 2002 for GUL 0.6 - Geometry Utility Library by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001