Calculate the rectangle Zone for a given point located around or in the rectangle. https://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland_algorithm
Point to test for location relative to the rectangle
Test whether a line segment AB intersects this rectangle.
The first endpoint of segment AB
The second endpoint of segment AB
Options affecting the intersect test.
True if intersects.
Intersect this PIXI.Rectangle with a PIXI.Polygon. Currently uses the clipper library. In the future we may replace this with more specialized logic which uses the line-line intersection formula.
A PIXI.Polygon
Options which configure how the intersection is computed
The intersected polygon or null if no solution was present
Determine whether some other Rectangle overlaps with this one. This check differs from the parent class Rectangle#intersects test because it is true for adjacency (zero area).
Some other rectangle against which to compare
Do the rectangles overlap?
Normalize the width and height of the rectangle in-place, enforcing that those dimensions be positive.
Generate a new rectangle by rotating this one clockwise about its center by a certain number of radians
The angle of rotation
A new rotated rectangle
Create normalized rectangular bounds given a rectangle shape and an angle of central rotation.
The top-left x-coordinate of the un-rotated rectangle
The top-left y-coordinate of the un-rotated rectangle
The width of the un-rotated rectangle
The height of the un-rotated rectangle
The angle of rotation about the center
The constructed rotated rectangle bounds
A PIXI.Rectangle where the width and height are always positive and the x and y are always the top-left