0

I have to define a yellow vector from the picture below. That what I know, is the dark green vector and the vertical plane. The angle between lime and dark green vector is 90 degrees.

What i can do is the equation of plane. And i know the rotation of vector in plane but only in 2D dimensional.

So i figured that if i rotate the dark green vector in this plane by 90 degrees, and than move that new vector by dark green vector i would create lime vector. After that i will add that lime vector and dark green vector to define yellow vector.

At the begining i know dark green vector and our plane.

Graphical representation of the problem

Thank you in advance for Your help

mroknocy
  • 20
  • 4

1 Answers1

0

Have a look at Rodrigues formula. It's for rotating a vector in 3D. enter image description here

Here

  • v is the vector you want to rotate.
  • k is the unit vector describing the axis of rotation

For more information google for Rodrigues formula, or follow wiki

Or you can use quaternion rotation. It's been explained nicely in this answer How does this Quaternion rotation code work?

Community
  • 1
  • 1
mirmdasif
  • 6,014
  • 2
  • 22
  • 28
  • I thing it is not what im searching for. As i have read Rodrigues' rotation formula rotates v by an angle θ around an axis z by decomposing it into its components parallel and perpendicular to z, and rotating only the perpendicular component. But this rotation isnt in one plane by a point of (0,0,0). What i am searching for is to rotate a plane by point (0,0,0) and get a new rotated vector. – mroknocy Oct 20 '14 at 15:36