Jump to content
  • Advertisement
Sign in to follow this  
DrainedBrain

Projecting into a 2D plane

This topic is 4857 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

Hi. im having trouble projecting vectors into a 2D plane. if i have the x,y,z coordinates of two points in space, how can i know were will the projection of the line joining those two points lie on the x , y or z planes ? i think this might be done using matrices, but how ? i'de be very grateful if anyone help me with this.

Share this post


Link to post
Share on other sites
Advertisement
If the equation of your plane is Ax + By + Cz + D = 0, where N = [A, B, C] and length( N ) == 1, then the projection of a point P onto the plane is P - ( N dot P + D ) * N

Share this post


Link to post
Share on other sites
If you're talking about this:

P - ( N dot P + D ) * N

Then (N.P+D) is a scalar value, so (N.P+D)*N is just a scalar multiplication (per component).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!