mirror of
https://github.com/photonstorm/phaser
synced 2024-12-19 01:24:48 +00:00
9 lines
645 B
TypeScript
9 lines
645 B
TypeScript
/**
|
|
* Get a point on the curve using the distance, in pixels, along the curve.
|
|
*
|
|
* @method Phaser.Hermite#getPointWithDistance
|
|
* @param {integer} [distance=0] - The distance along the curve to get the point from, given in pixels.
|
|
* @param {Phaser.Point|Object} [point] - An optional Phaser.Point, or Object containing public `x` and `y` properties. If given the resulting values will be stored in the Objects `x` and `y` properties. If omitted a new Phaser.Point object is created.
|
|
* @return {Phaser.Point} The point on the line at the specified 'distance' along the curve.
|
|
*/
|
|
export default function (curve: any, distance: any, out: any): any;
|