UNPKG

arcade-physics

Version:
18 lines 1.1 kB
export default GetPoints; /** * Return an array of points from the perimeter of the rectangle, each spaced out based on the quantity or step required. * * @function Phaser.Geom.Rectangle.GetPoints * @since 3.0.0 * * @generic {Phaser.Geom.Point[]} O - [out,$return] * * @param {Phaser.Geom.Rectangle} rectangle - The Rectangle object to get the points from. * @param {number} step - Step between points. Used to calculate the number of points to return when quantity is falsey. Ignored if quantity is positive. * @param {number} quantity - The number of evenly spaced points from the rectangles perimeter to return. If falsey, step param will be used to calculate the number of points. * @param {(array|Phaser.Geom.Point[])} [out] - An optional array to store the points in. * * @return {(array|Phaser.Geom.Point[])} An array of Points from the perimeter of the rectangle. */ declare function GetPoints(rectangle: Phaser.Geom.Rectangle, quantity: number, stepRate: any, out?: any[] | Phaser.Geom.Point[] | undefined): (any[] | Phaser.Geom.Point[]); //# sourceMappingURL=GetPoints.d.ts.map