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.
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.
bool Equals (SRect other)
Returns true if the rectangles are the same.
string ToString (string format) string ToString ()
Returns string for this Rect.
static SRect New (float x, float y, float width, float height)
Constructs a new SRect
float X get
set
Property Description
float Y get
set
Property Description
float Width get
set
Property Description
float Height get
set
Property Description
SVector Position get
The X and Y position of the rectangle.
SVector Center get
The position of the center of the rectangle.
SVector Min get
The position of the minimum corner of the rectangle.
SVector Max get
The position of the maximum corner of the rectangle.
SVector Size get
The width and height of the rectangle.
float XMin get
The minimum X coordinate of the rectangle.
float YMin get
The minimum Y coordinate of the rectangle.
float XMax get
The maximum Y coordinate of the rectangle.
float YMax get
The maximum Y coordinate of the rectangle.
float Left get
Property Description
float Right get
Property Description
float Top get
Property Description
float Bottom get
Property Description
Function |
---|
Property |
---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
bool Equals (SRect other)
Static Functions
static SRect New (float x, float y, float width, float height)
float X get
set
float Y get
set
float Width get
set
float Height get
set
SVector Position get
SVector Center get
SVector Min get
SVector Max get
SVector Size get
float XMin get
float YMin get
float XMax get
float YMax get
float Left get
float Right get
float Top get
float Bottom get