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

gul::hpoint1 Class Template Reference

#include <gul_types.h>

List of all members.

Public Methods

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

Static Public Methods

int dim ()
bool hom ()

Public Attributes

x
w

template<class T>
class gul::hpoint1< T >


Constructor & Destructor Documentation

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

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


Member Function Documentation

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

Definition at line 924 of file gul_types.h.

00924 { return 2; }

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

Definition at line 925 of file gul_types.h.

00925 { return true; }

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

Definition at line 944 of file gul_types.h.

References w, and x.

00945   {
00946     x *= a; w *= a;
00947     return *this;
00948   }

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

Definition at line 951 of file gul_types.h.

References w, and x.

00952   {
00953     vec4<T> v;
00954     v[0] = x; v[1] = 0; v[2] = 0; v[3] = w;
00955     return v;
00956   }

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

Definition at line 934 of file gul_types.h.

References w, and x.

00935   {
00936     x += a.x; w += a.w;
00937     return *this;
00938   }

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

Definition at line 939 of file gul_types.h.

References w, and x.

00940   {
00941     x -= a.x; w -= a.w;
00942     return *this;
00943   }

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

Definition at line 949 of file gul_types.h.

References x.

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

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

Definition at line 926 of file gul_types.h.

References w, and x.

00926 { return w; }


Member Data Documentation

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

Definition at line 923 of file gul_types.h.

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

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

Definition at line 922 of file gul_types.h.

Referenced by operator *=(), operator vec4(), operator+=(), 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