arcade-physics
Version:
Use Arcade Physics without Phaser.
22 lines • 829 B
TypeScript
export default GetShortestDistance;
/**
* @author Richard Davey <rich@photonstorm.com>
* @author Florian Mertens
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Get the shortest distance from a Line to the given Point.
*
* @function Phaser.Geom.Line.GetShortestDistance
* @since 3.16.0
*
* @generic {Phaser.Geom.Point} O - [out,$return]
*
* @param {Phaser.Geom.Line} line - The line to get the distance from.
* @param {(Phaser.Geom.Point|object)} point - The point to get the shortest distance to.
*
* @return {number} The shortest distance from the line to the point.
*/
declare function GetShortestDistance(line: Phaser.Geom.Line, point: (Phaser.Geom.Point | object)): number;
//# sourceMappingURL=GetShortestDistance.d.ts.map