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

gul::point1 Class Template Reference

#include <gul_types.h>

List of all members.

Public Methods

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

Static Public Methods

int dim ()
bool hom ()

Public Attributes

x

template<class T>
class gul::point1< T >


Constructor & Destructor Documentation

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

template<class T>
template<class T2>
gul::point1< T >::point1 const T2 &    ax [inline]
 


Member Function Documentation

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

Definition at line 779 of file gul_types.h.

00779 { return 1; }

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

Definition at line 780 of file gul_types.h.

00780 { return false; }

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

Definition at line 798 of file gul_types.h.

References x.

00799   {
00800     x *= a;
00801     return *this;
00802   }

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

Definition at line 805 of file gul_types.h.

References x.

00806   {
00807     vec4<T> v;
00808     v[0] = x; v[1] = 0; v[2] = 0; v[3] = 1;
00809     return v;
00810   }

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

Definition at line 788 of file gul_types.h.

References x.

00789   {
00790     x += a.x;
00791     return *this;
00792   }

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

Definition at line 793 of file gul_types.h.

References x.

00794   {
00795     x -= a.x;
00796     return *this;
00797   }

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

Definition at line 803 of file gul_types.h.

References x.

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

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

Definition at line 781 of file gul_types.h.

References x.

00781 { return (T)1; }


Member Data Documentation

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

Definition at line 778 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:18:00 2002 for GUL 0.6 - Geometry Utility Library by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001