phaser/v3/typings/math/angle/RotateTo.d.ts
2017-01-16 22:43:07 +01:00

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;