arcade-physics
Version:
Use Arcade Physics without Phaser.
18 lines • 874 B
TypeScript
export default Project;
/**
* Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the
* orthogonal projection of `pointA` onto a straight line parallel to `pointB`.
*
* @function Phaser.Geom.Point.Project
* @since 3.0.0
*
* @generic {Phaser.Geom.Point} O - [out,$return]
*
* @param {Phaser.Geom.Point} pointA - Point A, to be projected onto Point B.
* @param {Phaser.Geom.Point} pointB - Point B, to have Point A projected upon it.
* @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created.
*
* @return {Phaser.Geom.Point} A Point object holding the coordinates of the vector projection of `pointA` onto `pointB`.
*/
declare function Project(pointA: Phaser.Geom.Point, pointB: Phaser.Geom.Point, out?: any): Phaser.Geom.Point;
//# sourceMappingURL=Project.d.ts.map