Archived

This topic is now archived and is closed to further replies.

DarkHamster

Point & Plane easy question

Recommended Posts

this hsould be pretty simple, but I want to know how to find out if a point is infront of, behind, or on a plane when you know the planes normal (3D math is a little confusing to me right now, because no one''s explained it to me formally and I''m only in 10th grade). Thanks.

Share this post


Link to post
Share on other sites
What you do is take the dot product between the planes normal and the point you want to check. You then subtract the distance of the plane to the origin (this is the value "D" in the plane equation, and can be found by taking the dot product between the normal and a point that you know to be on the plane).

Now, if this final dot product is greater than 0, the point is in front. If it is equal to 0 (or really close by some epsilon value), then it''s on the plane, and if the dot product is less than 0, then it''s behind the plane.

If you want a more elaborate mathamatical definition, I could go into detail. That''s just the bare bones though

Share this post


Link to post
Share on other sites