arcade-physics
Version:
Use Arcade Physics without Phaser.
23 lines • 723 B
TypeScript
export default CounterClockwise;
/**
* Takes an angle in Phasers default clockwise format and converts it so that
* 0 is North, 90 is West, 180 is South and 270 is East,
* therefore running counter-clockwise instead of clockwise.
*
* You can pass in the angle from a Game Object using:
*
* ```javascript
* var converted = CounterClockwise(gameobject.rotation);
* ```
*
* All values for this function are in radians.
*
* @function Phaser.Math.Angle.CounterClockwise
* @since 3.16.0
*
* @param {number} angle - The angle to convert, in radians.
*
* @return {number} The converted angle, in radians.
*/
declare function CounterClockwise(angle: number): number;
//# sourceMappingURL=CounterClockwise.d.ts.map