Derm.Render.Plane Class Reference

Plane abstraction. More...

List of all members.

Public Member Functions

 Plane (Vertex3f v1, Vertex3f v2, Vertex3f v3)
 Construct a plane from 3 coplanar points.
 Plane (Vertex3f normal, Vertex3f point)
 Construct a plane from a normal and a point.
 Plane (Vertex3f normal, float d)
 Construct a plane from a normal and a distance from origin.
float GetDistance (Vertex3f p)
 Compute distance between a point and this plane.

Properties

float Distance [get, set]
Vertex3f Normal [get, set]
 Plane normal vector.

Detailed Description

Plane abstraction.


Constructor & Destructor Documentation

Derm.Render.Plane.Plane ( Vertex3f  normal,
float  d 
)

Construct a plane from a normal and a distance from origin.

Parameters:
normal A Vertex3f representing the plane normal.
d A System.Single representing the distance between the plane and the origin.
Derm.Render.Plane.Plane ( Vertex3f  normal,
Vertex3f  point 
)

Construct a plane from a normal and a point.

Parameters:
normal A Vertex3f representing the plane normal.
point A Vertex3f representing the point considered for constructing the plane.
Derm.Render.Plane.Plane ( Vertex3f  v1,
Vertex3f  v2,
Vertex3f  v3 
)

Construct a plane from 3 coplanar points.

Parameters:
v1 A Vertex3f representing one plane coplanar point.
v2 A Vertex3f representing one plane coplanar point.
v3 A Vertex3f representing one plane coplanar point.

Member Function Documentation

float Derm.Render.Plane.GetDistance ( Vertex3f  p  ) 

Compute distance between a point and this plane.

Parameters:
p A Vertex3f representing a point.
Returns:
It returns the distance between a point and this plane. In the case the distance is positive, the point is on the positive side of the plane (following Normal direction), otherwise the distance is negative.

Property Documentation

float Derm.Render.Plane.Distance [get, set]
Vertex3f Derm.Render.Plane.Normal [get, set]

Plane normal vector.



Services powered by Get Deus Ex Render Machina at SourceForge.net. Fast, secure and Free Open Source software downloads