• Advertisement

Archived

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

Point & Plane easy question

This topic is 5622 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
That helps a lot -- I just need the functionality really. ALthough what you said makes sense. Thank you again.

Share this post


Link to post
Share on other sites
Wait... wouldn''t just taking the dot product of the normal and the point and testing that against 0 tell you?

Share this post


Link to post
Share on other sites

  • Advertisement