Main Page | Class Hierarchy | Class List | Class Members

SC::Math::Plane Class Reference

List of all members.

Public Member Functions

float GetDistance (Vector3 point)

Properties

Vector3 Normal
float D

Detailed Description

Defines a plane in 3D space. A plane is defined in 3D space by the equation Ax + By + Cz + D = 0

This equates to a vector (the normal of the plane, whose x, y and z components equate to the coefficients A, B and C respectively), and a constant (D) which is the distance along the normal you have to go to move the plane back to the origin.


Member Function Documentation

float SC::Math::Plane::GetDistance Vector3  point  )  [inline]
 

This is a pseudodistance. The sign of the return value is positive if the point is on the positive side of the plane, negative if the point is on the negative side, and zero if the point is on the plane. The absolute value of the return value is the true distance only when the plane normal is a unit length vector.


Property Documentation

float SC::Math::Plane::D [get, set]
 

The distance from the origin to the plane along the Normal vector.

Vector3 SC::Math::Plane::Normal [get, set]
 

The normal of the plane.


The documentation for this class was generated from the following file:
Generated on Sat Jan 15 23:59:00 2005 for StreamCtrl by doxygen 1.3.6