mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
11 lines
522 B
TypeScript
11 lines
522 B
TypeScript
/**
|
|
* Rotates currentAngle towards targetAngle, taking the shortest rotation distance.
|
|
* The lerp argument is the amount to rotate by in this call.
|
|
*
|
|
* @method Phaser.Math#rotateToAngle
|
|
* @param {number} currentAngle - The current angle, in radians.
|
|
* @param {number} targetAngle - The target angle to rotate to, in radians.
|
|
* @param {number} [lerp=0.05] - The lerp value to add to the current angle.
|
|
* @return {number} The adjusted angle.
|
|
*/
|
|
export default function (currentAngle: any, targetAngle: any, lerp: any): any;
|