Results 1 to 3 of 3

Math Help - Find angle in 3D space, from two vectors

  1. #1
    Newbie
    Joined
    Jun 2010
    Posts
    2

    Find angle in 3D space, from two vectors

    Hi Everybody. I've a simple (I think) question, but can't find the answer. I'm building a graphical application in 3D where I need to rotate objects and to do coordinate conversions on the representation of their orientation. My explanation here use the right handed system (X left, Y top, Z forward). The object orientation is actually the position and orientation of its local space into the global space.

    One of these conversions is to compute Euler's angles (well that's Cardan or Tait-Bryan, but everybody says Euler for years) yaw, pitch and roll from two vectors local-Z and local-Y. I know how to compute yaw and pitch, but I'm having hard problems with roll.

    You may forget about all that was said above and just consider the problem this way: in a 3D space O,X,Y,Z:

    ------------------

    - we have two unit vectors that are orthogonal LY (LYx, LYy, LYz) and LZ (LZx, LZy, LZz)
    - LZ can be anything in the global space, and LY can be anything perpendicular to LZ
    - we can define a plan P perpendicular to LZ (hence including LY)

    Now, we project the global vertical axis Y onto P along LZ and we want to know the coordinates of its projection named Y1 (Y1x, Y1y, Y1z).

    -----------------

    If I can solve Y1xyz according to LZxyz and LYxyz, then I'll be able to measure the angle Y1,LY which happens to be the roll angle.

    BTW, LZ is the direction in which the object is looking at, and LY is the direction of the "top" of the object, the two vectors define a 3-degree of freedom orientation.

    You'll probably say it's a very basic exercise, but I'm not a mathematician, and you would help me to a great extend if you know the formula. Thanks to you math geniuses!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    A Plied Mathematician
    Joined
    Jun 2010
    From
    CT, USA
    Posts
    6,318
    Thanks
    4
    Awards
    2
    This wording, "project the global vertical axis Y onto P along LZ" is confusing me. Isn't P orthogonal to LZ? On what, exactly, do you wish to project the Y axis?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Jun 2010
    Posts
    2
    Quote Originally Posted by Ackbeet View Post
    Isn't P orthogonal to LZ? On what, exactly, do you wish to project the Y axis?
    Thanks for your time. Yes P is orthogonal to LZ. But, as LZ may be anything, Y may not be parallel to P. I want to project Y on P, the projection being made using LZ direction (orthogonal projection?). I'm sorry if the wording is not totally accurate, English is not my native language.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Angle between vectors in complex space
    Posted in the Advanced Algebra Forum
    Replies: 2
    Last Post: November 18th 2010, 12:34 PM
  2. Find the angle between vectors r(t) and F(t)
    Posted in the Calculus Forum
    Replies: 4
    Last Post: July 28th 2008, 03:39 PM
  3. Replies: 4
    Last Post: April 9th 2008, 05:04 AM
  4. How can I find the angle between two vectors?
    Posted in the Pre-Calculus Forum
    Replies: 6
    Last Post: August 3rd 2007, 10:02 AM
  5. find angle between vectors .. confusion.
    Posted in the Pre-Calculus Forum
    Replies: 2
    Last Post: March 12th 2007, 06:05 AM

Search Tags


/mathhelpforum @mathhelpforum