Sign in to follow this  
DrainedBrain

Projecting into a 2D plane

Recommended Posts

DrainedBrain    122
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
JohnBolton    1372
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
jyk    2094
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this