Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mb10  
#1 Posted : 31 August 2013 10:30:05(UTC)
mb10


Rank: Member

Groups: Registered
Joined: 27/08/2013(UTC)
Posts: 19
Italy

Was thanked: 9 time(s) in 5 post(s)
Attached is a file with formulas for 3D rotations transformations.
It can be used as a "snippet" (copy it in the "snippets" folder).

Currently supported conversions:
Euler angles to quaternions
Quaternions to rotation matrix
Euler angles to rotation matrix
Angle & vector to rotation matrix
Angle & vector to quaternions
Quaternions to Euler angles
Quaternions to angle & vector
Rotation Matrix to quaternions


For those unfamiliar on the matter, a comprehensive article is found here:
Review of Attitude Representations


File Attachment(s):
3D Rotations.sm (58kb) downloaded 164 time(s).
Rotation Examples.sm (99kb) downloaded 141 time(s).
thanks 2 users thanked mb10 for this useful post.
on 02/09/2013(UTC),  on 02/09/2013(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mb10  
#2 Posted : 02 September 2013 17:56:36(UTC)
mb10


Rank: Member

Groups: Registered
Joined: 27/08/2013(UTC)
Posts: 19
Italy

Was thanked: 9 time(s) in 5 post(s)
Thank you very much for your comments.

Originally Posted by: ioan92 Go to Quoted Post

For practical wider interest, please include, if possible, also the "Euler–Rodrigues Quaternion Formulation".

The AngVec2Quat and Quat2AngVec functions are intended to perform Euler-Rodriguez to Quaternion conversion and vice-versa, respectively: i.e. the Angle-Vector parameters correspond to the Euler-Rodriguez representation of rotations.

Best regards,

massimo

thanks 1 user thanked mb10 for this useful post.
on 02/09/2013(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.