PDA

View Full Version : Math

07-09-2001, 01:14 PM
Consider the clipping of a line segment defined by the latter's two endpoints. Show that you require only the endpoints to determine whether the line segment is not clipped, is partially visible, or is clipped out completely.

Thanks

Brent Fogarty
07-09-2001, 03:57 PM
If I understand you correctly you could use the Plane equation Ax + By + Cz + D = 0 to work out if one or both of the end points are infront of the clipping plane or behind it. If each end point is on a different side of the plane then the line segment is partially visible, otherwise it is either completely visible or completely invisible.

Hope that helps

john
07-09-2001, 04:07 PM
Does the question not sound amazingly like someone's homework?! =)

07-09-2001, 05:23 PM
Originally posted by john:
Does the question not sound amazingly like someone's homework?! =)
Who wants to turn in the wrong answer? Veerification is always nice.

LoCo3D
07-10-2001, 09:16 PM
Or even worse....a test!