phaser/v3/typings/math/angle/RotateTo.d.ts

12 lines
522 B
TypeScript
Raw Normal View History

2017-01-16 21:43:07 +00:00
/**
* 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;