Results 1 to 7 of 7

Math Help - Rotate Vector

  1. #1
    Newbie
    Joined
    Feb 2011
    Posts
    4

    Rotate Vector

    I have pont1(x1,y1,z1) and point2(x2,y2,z2) describing a vector.
    How do I fined the angle of rotation by x,y,z

    Rotate Vector-graphic1.jpg

    The red object is ilustration of the vector.
    Its hight is caluculated and it is the distance between point1 and point2.
    I want to rotate this object so that the top of it drops on point1.
    Thanks!!!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    A Plied Mathematician
    Joined
    Jun 2010
    From
    CT, USA
    Posts
    6,318
    Thanks
    5
    Awards
    2
    You have a left-handed coordinate system there, which is going to muck everything up. (Left-handed coordinate systems exist, but I am not at home in them.) I suggest you redraw it so that \mathbf{i}\times\mathbf{j}=\mathbf{k}, as in a proper right-handed coordinate system.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Feb 2011
    Posts
    4
    Is that ok?Rotate Vector-graphic1.jpg
    Follow Math Help Forum on Facebook and Google+

  4. #4
    A Plied Mathematician
    Joined
    Jun 2010
    From
    CT, USA
    Posts
    6,318
    Thanks
    5
    Awards
    2
    Check out this web page. You can find the angle between the straight-up vector and the vector from 1 to 2 by using the dot product or cross product method. I'd recommend the cross product method, because if you compute the cross product, you'll have the axis about which you want to rotate the line, and you can plug that into the web page to which I linked.

    Cheers.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie
    Joined
    Feb 2011
    Posts
    4
    Thanks a lot for your answer, bu my problem is that I'm not very good at math, and I wrote a huge script and this now is the break pint. I really be thankful if you help me some more.
    Follow Math Help Forum on Facebook and Google+

  6. #6
    A Plied Mathematician
    Joined
    Jun 2010
    From
    CT, USA
    Posts
    6,318
    Thanks
    5
    Awards
    2
    Out of curiosity, what is the script for?
    Follow Math Help Forum on Facebook and Google+

  7. #7
    Newbie
    Joined
    Feb 2011
    Posts
    4
    it is MaxScript, for 3D graphics and animations.

    Can I use one of these matrixes Rotation matrix - Wikipedia, the free encyclopedia
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 5
    Last Post: February 9th 2011, 03:55 AM
  2. volumes rotate about y = x
    Posted in the Calculus Forum
    Replies: 1
    Last Post: April 27th 2010, 08:12 AM
  3. how to rotate a curve
    Posted in the Geometry Forum
    Replies: 4
    Last Post: January 27th 2010, 05:32 AM
  4. rotate conic
    Posted in the Pre-Calculus Forum
    Replies: 1
    Last Post: May 21st 2008, 12:01 PM
  5. Using sin and cos to rotate a point
    Posted in the Trigonometry Forum
    Replies: 1
    Last Post: September 10th 2007, 10:07 AM

Search Tags


/mathhelpforum @mathhelpforum