phaser/v3/typings/geom/hermite/GetAngle.d.ts
2017-01-16 22:43:07 +01:00

8 lines
395 B
TypeScript

/**
* Calculate and return the angle, in radians, of the curves tangent based on time.
*
* @method Phaser.Hermite#getAngle
* @param {number} [t=0] - The `t` (time) value at which to find the angle. Must be between 0 and 1.
* @return {number} The angle of the line at the specified `t` time value along the curve. The value is in radians.
*/
export default function (curve: any, t: any): number;