arcade-physics
Version:
Use Arcade Physics without Phaser.
20 lines • 691 B
TypeScript
export default CenterOn;
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Center a line on the given coordinates.
*
* @function Phaser.Geom.Line.CenterOn
* @since 3.0.0
*
* @param {Phaser.Geom.Line} line - The line to center.
* @param {number} x - The horizontal coordinate to center the line on.
* @param {number} y - The vertical coordinate to center the line on.
*
* @return {Phaser.Geom.Line} The centered line.
*/
declare function CenterOn(line: Phaser.Geom.Line, x: number, y: number): Phaser.Geom.Line;
//# sourceMappingURL=CenterOn.d.ts.map