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

8 lines
442 B
TypeScript

/**
* Calculate and return the angle, in radians, of the curves tangent at the given pixel distance along the curves length.
*
* @method Phaser.Hermite#getAngleWithDistance
* @param {number} [distance=0] - The distance along the curve to get the angle from, in pixels.
* @return {number} The angle of the line at the specified distance along the curve. The value is in radians.
*/
export default function (curve: any, distance: any): number;