Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | Namespace Members | Class Members | Related Pages

DistancePlaneToSegment Struct Reference
[XEngineMath Library]

List of all members.

Detailed Description

Returns the distance of the given plane to the given segment.

	If the segment intersects the plane the distance is naturally 0. This
	can be detected by looking on which side the two segment points lie.
	If one point lies on the positive side and the other point on the negative
	side of the plane the segment intersects the plane and the distance is 0.
	In all other cases the minimum distance of the plane to the segment
	is the minimum distance of the distances of the segment points to the
	plane. The distance of a point P to a plane n * X = d is easily computed 
	as n * P - d.
	


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