Results 1 to 4 of 4

Thread: 3D Rotation

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Ireland
    Posts
    96

    3D Rotation

    I have used the idea that the end of a vector is a point on a sphere and the other end is the origin of the XYZ Axis of roation. I want to move the X-Axis DegX and the Y-Axis DegY and the Z-Axis DegZ.

    How do I do the rotation calculation. I just can't get the new values of XYZ.

    PS: Converting from 3D to 2D, I already have working, for plotting the vector, but the new XYZ coordinates of the Vector????????

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    as far as I understand you you just have to go like
    sin(degx) to get the y component to add
    and sin(degy) to get the x component to add
    than you would have to do it for all 3 dimensions.
    (every dimension can be seen as a 2 dimensional vector for itself)

    I hope I made some sense
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3
    Zaei
    Guest
    Look up spherical coordinates, and conversion from spherical to rectangular coordinates. This should be what you are looking for(though a 3d vector can be described with only 2 angles, and a radius).

    Z.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Ireland
    Posts
    96
    Thanks, I'll try that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width