SRect
Index
Functions Index
Properties Index
Functions
Contains
bool Contains (SVector point) bool Contains (SVector point, bool allowInverse)
Returns true if the x and y components of point is a point inside this rectangle. If allowInverse is present and true, the width and height of the Rect are allowed to take negative values (ie, the min value is greater than the max), and the test will still work.
Overlaps
bool Overlaps (SRect other) bool Overlaps (SRect other, bool allowInverse)
Returns true if the other rectangle overlaps this one. If allowInverse is present and true, the widths and heights of the Rects are allowed to take negative values (ie, the min value is greater than the max), and the test will still work.
Equals
bool Equals (SRect other)
Returns true if the rectangles are the same.
ToString
string ToString (string format) string ToString ()
Returns string for this Rect.
New
static SRect New (float x, float y, float width, float height)
Constructs a new SRect
Properties
X
float X get
set
Property Description
Y
float Y get
set
Property Description
Width
float Width get
set
Property Description
Height
float Height get
set
Property Description
Position
SVector Position get
The X and Y position of the rectangle.
Center
SVector Center get
The position of the center of the rectangle.
Min
SVector Min get
The position of the minimum corner of the rectangle.
Max
SVector Max get
The position of the maximum corner of the rectangle.
Size
SVector Size get
The width and height of the rectangle.
XMin
float XMin get
The minimum X coordinate of the rectangle.
YMin
float YMin get
The minimum Y coordinate of the rectangle.
XMax
float XMax get
The maximum Y coordinate of the rectangle.
YMax
float YMax get
The maximum Y coordinate of the rectangle.
Left
float Left get
Property Description
Right
float Right get
Property Description
Top
float Top get
Property Description
Bottom
float Bottom get
Property Description
Last updated