Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

plane.h File Reference

#include <celmath/mathlib.h>
#include <celmath/vecmath.h>

Include dependency graph for plane.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef Plane< double > Planed
typedef Plane< float > Planef

Functions

template<class T>
Plane< T > operator * (const Plane< T > &p, const Matrix4< T > &m)
template<class T>
Plane< T > operator * (const Matrix4< T > &m, const Plane< T > &p)


Typedef Documentation

typedef Plane<double> Planed
 

Definition at line 38 of file plane.h.

typedef Plane<float> Planef
 

Definition at line 37 of file plane.h.


Function Documentation

template<class T>
Plane<T> operator * const Plane< T > &  p,
const Matrix4< T > &  m
 

Definition at line 72 of file plane.h.

References Vector4< T >::w, Vector4< T >::x, Vector4< T >::y, and Vector4< T >::z.

00073 {
00074     Vector4<T> v = Vector4<T>(p.normal.x, p.normal.y, p.normal.z, p.d) * m;
00075     return Plane<T>(Vector3<T>(v.x, v.y, v.z), v.w);
00076 }

template<class T>
Plane<T> operator * const Matrix4< T > &  m,
const Plane< T > &  p
 

Definition at line 66 of file plane.h.

References Vector4< T >::w, Vector4< T >::x, Vector4< T >::y, and Vector4< T >::z.

00067 {
00068     Vector4<T> v = m * Vector4<T>(p.normal.x, p.normal.y, p.normal.z, p.d);
00069     return Plane<T>(Vector3<T>(v.x, v.y, v.z), v.w);
00070 }


Generated on Sat Jan 14 22:32:45 2006 for Celestia by  doxygen 1.4.1