qc.Math.reverseAngle

Prototype

  • number reverseAngle(angleRad)

Paramters

Paramter Type Description
angleRad number The angle to reverse, in radians.
return number Returns the reverse angle, in radians.

Description

Reverses an angle.

Example

    // return 0
    var ret = game.math.reverseAngle(Math.PI);

    // return Math.PI
    var ret = game.math.reverseAngle(0);