Page 1 of 1

Orientation in space

Posted: 24.10.2010, 09:36
by jogad
Hello,

To improve my script generator I need to know how to calculate two angles during a rotation.

I get the initial rotation and final rotation with the instructions

Code: Select all

start_orientation = observer:getorientation()

and later

Code: Select all

end_orientation = observer:getorientation()

The two angles I need are
    - Angle alpha between the two directions of vue
    - The spin angle theta between the starting and the ending direction.
Here's a quick sketch to explain
orientation.png

The mathematical considerations on quaternions are beyond my understanding. :?
I just need to know how I can do with the instructions available in a celx script.

Can anyone help me? :mrgreen:

Re: Orientation in space

Posted: 01.11.2010, 09:02
by jogad
Hello,

Let me try again by asking the question differently.

I have 2 rotations rot1 and rot2 (stored in Celestia as quaternion about which I do not understand anything :oops: )

How do I find the rotation that gives rot2 starting from rot1 :?:
:mrgreen:

Re: Orientation in space

Posted: 02.11.2010, 09:51
by John Van Vliet
--- edit ---