- #1
Gajan
- 3
- 0
Hi Friends,
I have a problem in transforming a vector in 3d using a matrix.
I have two points A, B. Assume origin is O, here A,B ,O are in 3d.
First construct a vector AB:
OB = OA + AB
AB = OB - OA
AB = OB + AO
I have a 4*4 matrix that gives the transformation matrix(rotation+translation)
I need to transform vector AB using this matrix.
Currently what I do is transform individual points A , B first and the reconstruct the vector A'B' again (after tranforming)
What I want to do is to without doing the above steps, transform the vector as it is (without transforming the individual points). Is this possible?
How could I do this computation?
I am looking for your reply!
thank you.
/Gajan
I have a problem in transforming a vector in 3d using a matrix.
I have two points A, B. Assume origin is O, here A,B ,O are in 3d.
First construct a vector AB:
OB = OA + AB
AB = OB - OA
AB = OB + AO
I have a 4*4 matrix that gives the transformation matrix(rotation+translation)
I need to transform vector AB using this matrix.
Currently what I do is transform individual points A , B first and the reconstruct the vector A'B' again (after tranforming)
What I want to do is to without doing the above steps, transform the vector as it is (without transforming the individual points). Is this possible?
How could I do this computation?
I am looking for your reply!
thank you.
/Gajan