|
|
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.
|
Copyright © by Martin Ecker |