the horizontal coordinate of the top-left corner
the vertical coordinate of the top-left corner
the width of the rectangle
the height of the rectangle
Static
Readonly
EMPTY_An empty ScreenRect located at the origin.
Returns true if this ScreenRect is exactly equal to the other ScreenRect.
the ScreenRect to compare to
true if this ScreenRect is exactly equal to the other ScreenRect
Returns true if this ScreenRect is nearly equal to another ScreenRect.
The optional tolerance value corresponds to the epsilon
in
Util.veryDifferent, so the actual tolerance
used depends on the magnitude of the numbers being compared.
the ScreenRect to compare to
Optional
opt_tolerance: numberoptional tolerance for comparison
true if this ScreenRect is nearly equal to the other ScreenRect
Static
cloneReturns a copy of the given ScreenRect.
the ScreenRect to clone
a copy of rect
Generated using TypeDoc
An immutable rectangle corresponding to screen coordinates where the vertical coordinates increase downwards.