phaser/v3/typings/geom/hermite/GetAngle.d.ts

9 lines
395 B
TypeScript
Raw Normal View History

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