Difference between revisions of "LlEuler2Rot"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 14: Line 14:
     {
     {
         vector input = <73.0, -63.0, 20.0> * DEG_TO_RAD;//not advised to make your own quaternion
         vector input = <73.0, -63.0, 20.0> * DEG_TO_RAD;//not advised to make your own quaternion
         llSay(0,"The Euler2Rot of "+(string)input+" is: "+(string)llEuler2Rot(input) );
        rotation rot = llEuler2Rot(input);
         llSay(0,"The Euler2Rot of "+(string)input+" is: "+(string)rot );
     }
     }
}
}

Revision as of 21:44, 17 September 2007

Summary

Function: rotation llEuler2Rot( vector v );

Returns a rotation representation of Euler Angles v.

• vector v

Examples

default
{
    state_entry()
    {
        vector input = <73.0, -63.0, 20.0> * DEG_TO_RAD;//not advised to make your own quaternion
        rotation rot = llEuler2Rot(input);
        llSay(0,"The Euler2Rot of "+(string)input+" is: "+(string)rot );
    }
}

See Also

Functions

•  llRot2Euler

Articles

•  "Wikipedia logo"Euler_Angles

Deep Notes

Search JIRA for related Issues

Signature

function rotation llEuler2Rot( vector v );