mirror of
https://github.com/photonstorm/phaser
synced 2024-12-01 00:49:41 +00:00
12 lines
522 B
TypeScript
12 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;
|