UNPKG

arcade-physics

Version:
21 lines 788 B
export default BetweenPoints; /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y). * * Calculates the angle of the vector from the first point to the second point. * * @function Phaser.Math.Angle.BetweenPoints * @since 3.0.0 * * @param {Phaser.Types.Math.Vector2Like} point1 - The first point. * @param {Phaser.Types.Math.Vector2Like} point2 - The second point. * * @return {number} The angle in radians. */ declare function BetweenPoints(point1: Phaser.Types.Math.Vector2Like, point2: Phaser.Types.Math.Vector2Like): number; //# sourceMappingURL=BetweenPoints.d.ts.map