de.mirell.m3d

interface IRotateable

All Known Implementing Classes: C3DObject, CCamera, CModel

interface IRotateable

    Method Summary

    public getRotation ( ): CQuaternion
    Retrieves the current rotation of the object
    public rotate ( Value: CQuaternion ): Void
    Rotate the object using a quaternion
    public setRotation ( Value: CQuaternion ): Void
    Set the current rotation of the object

    Method Documentation

    getRotation

    public function getRotation (
    ): CQuaternion
    Retrieves the current rotation of the object
    • Returns:
      The rotation of the object

    rotate

    public function rotate (
    Value: CQuaternion): Void
    Rotate the object using a quaternion
    • Parameters:
      Value
      The amount to rotate the object set using a de.mirell.math.CQuaternion
    • Example:
      My3DObject.rotate( new CQuaternion().fromEulerAngles(90, 0, 0) );

    setRotation

    public function setRotation (
    Value: CQuaternion): Void
    Set the current rotation of the object
    • Parameters:
      Value
      The rotation of the object specfied by a de.mirell.math.CQuaternion
    • Example:
      My3DObject.setRotation( new CQuaternion().fromEulerAngles(90, 0, 0) );
    • See also:

    The documentation was generated from the following file:
    • IRotateable.as, Last Modified: 21.08.2004 12:40:54