MCPcopy Index your code
hub / github.com/phaserjs/phaser / makeRect

Function makeRect

tests/geom/intersects/RectangleToRectangle.test.js:5–15  ·  view source on GitHub ↗
(x, y, width, height)

Source from the content-addressed store, hash-verified

3describe('Phaser.Geom.Intersects.RectangleToRectangle', function ()
4{
5 function makeRect(x, y, width, height)
6 {
7 return {
8 x: x,
9 y: y,
10 width: width,
11 height: height,
12 right: x + width,
13 bottom: y + height
14 };
15 }
16
17 it('should return true when two rectangles overlap', function ()
18 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…