Main Page | Class Hierarchy | Class List | Class Members

DVR::Math::Plane Class Reference

List of all members.

Public Member Functions

 Plane (Plane plane)
 Plane (Vector3 normal, float constant)
 Plane (Vector3 normal, Vector3 point)
PlaneSide GetSide (Vector3 point)
float GetDistance (Vector3 point)
override string ToString ()

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 DVR::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 DVR::Math::Plane::D [get, set]
 

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

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

The normal of the plane.


The documentation for this class was generated from the following file:
Generated on Tue Nov 30 22:19:44 2004 for DirectVolumeRenderer by doxygen 1.3.6