arcade-physics
Version:
Use Arcade Physics without Phaser.
18 lines • 950 B
TypeScript
export default RandomOutside;
/**
* Calculates a random point that lies within the `outer` Rectangle, but outside of the `inner` Rectangle.
* The inner Rectangle must be fully contained within the outer rectangle.
*
* @function Phaser.Geom.Rectangle.RandomOutside
* @since 3.10.0
*
* @generic {Phaser.Geom.Point} O - [out,$return]
*
* @param {Phaser.Geom.Rectangle} outer - The outer Rectangle to get the random point within.
* @param {Phaser.Geom.Rectangle} inner - The inner Rectangle to exclude from the returned point.
* @param {Phaser.Geom.Point} [out] - A Point, or Point-like object to store the result in. If not specified, a new Point will be created.
*
* @return {Phaser.Geom.Point} A Point object containing the random values in its `x` and `y` properties.
*/
declare function RandomOutside(outer: Phaser.Geom.Rectangle, inner: Phaser.Geom.Rectangle, out?: any): Phaser.Geom.Point;
//# sourceMappingURL=RandomOutside.d.ts.map