Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: bool InRange(int, int, int, int)

  • 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

intwidth The width of the rectangle to check.
intheight The height of the rectangle to check.
intleft The left edge of the rectangle to check.
inttop 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.