- Declared in: RT.Coordinates.Square
Declaration
public bool InRange(
int width,
int height,
int left = 0,
int top = 0
)
Summary
Tests whether this coordinate is within a given rectangular range.
Parameters
int | width |
The width of the rectangle to check. |
int | height |
The height of the rectangle to check. |
int | left |
The left edge of the rectangle to check. |
int | top |
The top edge of the rectangle to check. |
Returns
Note that numerically, the
width and
height parameters are exclusive: a
coordinate at (5, 0) is outside of a rectangle of width 5 and left edge 0.