This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > July 2004 > angle axis to world coord angles in status bar





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author angle axis to world coord angles in status bar
kivaman

2004-07-20, 10:51 pm

I am looking for a way to convert the x,y,z,angle vrml rotation field to
x degrees, y degrees, z degrees as measured to the world co-ordinate
system or to an object's rotation node reference axis. Does anyone know
of a ready-made algorithm or javascript that can accomplish this without
too much of a hit on the cpu?

Thanks in advance!

Joerg Scheurich aka MUFTI

2004-07-20, 10:51 pm

> I am looking for a way to convert the x,y,z,angle vrml rotation field to
> x degrees, y degrees, z degrees as measured to the world co-ordinate
> system or to an object's rotation node reference axis. Does anyone know
> of a ready-made algorithm


http://www1.acm.org/pubs/tog/GraphicsGems/index.html
http://www1.acm.org/pubs/tog/Graphi...e/EulerAngles.c

Has a "Eul_FromQuat" function. "Order" means you need to tell which angle
comes first and which angle comes last.
To account a quaternion from a SFRotation see function
"public void toQuaternion(){" in

http://www.martinb.com/maths/algebr...tation_java.htm

A rotation is equivalent to a normalized quaternion.

About normalization see

http://www.martinb.com/maths/algebr...tions/index.htm

so long
MUFTI
--
Every Array object has a length property whose value is always an
integer with positive sign and less than 232.
32
Layout error einer ECMAScript Spezifikation in HTML: 2 -> 232
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews