- #1
physical101
- 47
- 0
Hi there
I am trying to project some 3D points on to the span of two orthogonal vectors.
v1 = [ -0.1235 -0.9831 0.1352]
v2 = [ 0.7332 -0.1822 -0.6552]
I used the orthogonal projection formula
newpoint = oldpoint-dot(oldpoint,normal(v1,v2))*normal(v1,v2);
but when I plot it in MATLAB I don't get the points projected onto the plane.
Any ideas were I am going wrong?
Cheers
Duane
I am trying to project some 3D points on to the span of two orthogonal vectors.
v1 = [ -0.1235 -0.9831 0.1352]
v2 = [ 0.7332 -0.1822 -0.6552]
I used the orthogonal projection formula
newpoint = oldpoint-dot(oldpoint,normal(v1,v2))*normal(v1,v2);
but when I plot it in MATLAB I don't get the points projected onto the plane.
Any ideas were I am going wrong?
Cheers
Duane