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

gfx::Plane Class Reference

Collaboration diagram for gfx::Plane:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Plane ()
 Plane (const Vector3 &normal, Real p)
 Plane (Real a, Real b, Real c, Real d)
 Plane (const Point3 &p1, const Point3 &p2, const Point3 &p3)
 Plane (const Triangle3 &t)
virtual ~Plane ()
Real distanceTo (const Point3 &pt) const
bool contains (const Point3 &p) const
Real classify (const Vector3 &v) const

Public Attributes

Vector3 normal
Real p

Constructor & Destructor Documentation

gfx::Plane::Plane  )  [inline]
 

Definition at line 43 of file Plane.

gfx::Plane::Plane const Vector3 normal,
Real  p
[inline]
 

Definition at line 45 of file Plane.

References base::Vector3::normalize().

gfx::Plane::Plane Real  a,
Real  b,
Real  c,
Real  d
[inline]
 

Definition at line 48 of file Plane.

References base::Vector3::length(), normal, and base::Vector3::normalize().

gfx::Plane::Plane const Point3 p1,
const Point3 p2,
const Point3 p3
[inline]
 

Definition at line 52 of file Plane.

References normal, base::Vector3::normalize(), and base::Point3.

gfx::Plane::Plane const Triangle3 t  )  [inline]
 

Definition at line 58 of file Plane.

References normal, base::Vector3::normalize(), gfx::Triangle3::p1(), gfx::Triangle3::p2(), and gfx::Triangle3::p3().

virtual gfx::Plane::~Plane  )  [inline, virtual]
 

Definition at line 64 of file Plane.


Member Function Documentation

Real gfx::Plane::classify const Vector3 v  )  const [inline]
 

Definition at line 72 of file Plane.

References normal.

bool gfx::Plane::contains const Point3 p  )  const [inline]
 

Definition at line 69 of file Plane.

References distanceTo(), and base::Point3.

Real gfx::Plane::distanceTo const Point3 pt  )  const [inline]
 

Definition at line 66 of file Plane.

References normal, and base::Point3.

Referenced by contains().


Member Data Documentation

Vector3 gfx::Plane::normal
 

Definition at line 75 of file Plane.

Referenced by classify(), distanceTo(), gfx::operator<<(), Plane(), and gfx::TriangleDesc::TriangleDesc().

Real gfx::Plane::p
 

Definition at line 76 of file Plane.

Referenced by gfx::operator<<().


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:39:52 2004 for OpenSim by doxygen 1.3.6