Projecting into a 2D plane

Started by
3 comments, last by Zakwayda 18 years, 8 months ago
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.
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
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
thank you very much for your help.
one more thing though, is the multiplication per componenet or do u mean cross product by that?
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).

This topic is closed to new replies.

Advertisement