View Full Version : Math

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, 04: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

Does the question not sound amazingly like someone's homework?! =)

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, 10:16 PM

Or even worse....a test!

Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.