arcade-physics
Version:
Use Arcade Physics without Phaser.
18 lines • 659 B
TypeScript
export default GetNormal;
/**
* Calculate the normal of the given line.
*
* The normal of a line is a vector that points perpendicular from it.
*
* @function Phaser.Geom.Line.GetNormal
* @since 3.0.0
*
* @generic {Phaser.Geom.Point} O - [out,$return]
*
* @param {Phaser.Geom.Line} line - The line to calculate the normal of.
* @param {(Phaser.Geom.Point|object)} [out] - An optional point object to store the normal in.
*
* @return {(Phaser.Geom.Point|object)} The normal of the Line.
*/
declare function GetNormal(line: Phaser.Geom.Line, out?: (Phaser.Geom.Point | object)): (Phaser.Geom.Point | object);
//# sourceMappingURL=GetNormal.d.ts.map