Source Academy Modules
    Preparing search index...

    Function rotate

    • Sequentially rotates the specified Operable about the x, y, and z axes using the specified angles, in radians (i.e. 2π represents 360°).

      The order of rotation is: x, y, then z axis. The order of rotation can affect the result, so you may wish to make multiple separate calls to rotate() if you require a specific order of rotation.

      Parameters

      • operable: Operable

        Shape or Group

      • xAngle: number

        x angle in radians

      • yAngle: number

        y angle in radians

      • zAngle: number

        z angle in radians

      Returns Operable

      rotated Shape