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

Teddy::Maths::Plane Class Reference

Plane. More...

#include <Plane.h>

Inheritance diagram for Teddy::Maths::Plane:

Inheritance graph
[legend]
Collaboration diagram for Teddy::Maths::Plane:

Collaboration graph
[legend]
List of all members.

Public Methods

 Plane ()
 Plane (const float a, const float b, const float c, const float d)
void neg ()
 Negate plane, that is, flip. More...

double distance (const Vector &p) const
Plane & operator= (const Vector &v)
 Assign vector. More...

Plane & operator= (const Vector4 &v)
 Assign vector4. More...

Vector getNormal () const
double getConstant () const

Detailed Description

Plane.

Definition at line 38 of file Plane.h.


Constructor & Destructor Documentation

Teddy::Maths::Plane::Plane   [inline]
 

Definition at line 40 of file Plane.h.

Teddy::Maths::Plane::Plane const float    a,
const float    b,
const float    c,
const float    d
[inline]
 

Definition at line 41 of file Plane.h.

References Vector4.


Member Function Documentation

double Teddy::Maths::Plane::distance const Vector &    p const
 

Distance - returns positive or negative or (near) zero if point is on side or another or in this plane.

Definition at line 51 of file Plane.cpp.

References Vector.

double Teddy::Maths::Plane::getConstant   const
 

Definition at line 71 of file Plane.cpp.

Vector Teddy::Maths::Plane::getNormal   const
 

Definition at line 66 of file Plane.cpp.

References Vector.

void Teddy::Maths::Plane::neg  
 

Negate plane, that is, flip.

Definition at line 57 of file Plane.cpp.

Plane & Teddy::Maths::Plane::operator= const Vector4   v
 

Assign vector4.

Definition at line 84 of file Plane.cpp.

References Vector4.

Plane & Teddy::Maths::Plane::operator= const Vector &    v
 

Assign vector.

Definition at line 76 of file Plane.cpp.

References Vector.


The documentation for this class was generated from the following files: