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

gul::point Class Template Reference

#include <gul_types.h>

List of all members.

Public Methods

weight () const
 point ()
template<class T2>  point (const T2 &ax, const T2 &ay, const T2 &az)
template<class T2> point< T > & operator= (const point2< T2 > &a)
template<class T2> point< T > & operator= (const point< T2 > &a)
point< T > & operator+= (const point< T > &a)
point< T > & operator-= (const point< T > &a)
point< 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
z

template<class T>
class gul::point< T >


Constructor & Destructor Documentation

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

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


Member Function Documentation

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

Definition at line 866 of file gul_types.h.

00866 { return 3; }

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

Definition at line 867 of file gul_types.h.

00867 { return false; }

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

Definition at line 903 of file gul_types.h.

References x, y, and z.

00904   {
00905     x *= a; y *= a; z *= a;
00906     return *this;
00907   }

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

Definition at line 910 of file gul_types.h.

References x, y, and z.

00911   {
00912     vec4<T> v;
00913     v[0] = x; v[1] = y; v[2] = z; v[3] = 1;
00914     return v;
00915   }

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

Definition at line 893 of file gul_types.h.

References x, y, and z.

00894   {
00895     x += a.x; y += a.y; z += a.z;
00896     return *this;
00897   }

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

Definition at line 898 of file gul_types.h.

References x, y, and z.

00899   {
00900     x -= a.x; y -= a.y; z -= a.z;
00901     return *this;
00902   }

template<class T>
template<class T2>
point<T>& gul::point< T >::operator= const point< T2 > &    a [inline]
 

Definition at line 886 of file gul_types.h.

References x, y, and z.

00887   { 
00888     x = (T)a.x;
00889     y = (T)a.y; 
00890     z = (T)a.z; 
00891     return *this;
00892   }

template<class T>
template<class T2>
point<T>& gul::point< T >::operator= const point2< T2 > &    a [inline]
 

Definition at line 878 of file gul_types.h.

References x, y, and z.

00879   { 
00880     x = (T)a.x;
00881     y = (T)a.y; 
00882     z = (T)0; 
00883     return *this;
00884   }

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

Definition at line 908 of file gul_types.h.

References x.

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

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

Definition at line 868 of file gul_types.h.

References x, y, and z.

00868 { return rtr<T>::one(); }


Member Data Documentation

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

Definition at line 863 of file gul_types.h.

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

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

Definition at line 864 of file gul_types.h.

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

template<class T>
T gul::point::z
 

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