Projecting into a 2D plane
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.
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
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).
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
Popular Topics
Advertisement