mirror of
https://github.com/photonstorm/phaser
synced 2024-12-19 01:24:48 +00:00
8 lines
442 B
TypeScript
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;
|