mirror of
https://github.com/photonstorm/phaser
synced 2024-12-29 22:43:08 +00:00
9 lines
442 B
TypeScript
9 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;
|