Rect Structure |
Namespace: WebSupergoo.WordGlue4
The Rect type exposes the following members.
| Name | Description | |
|---|---|---|
| Rect(Point, Size) |
Construct the Rect given a top-left Point and
a Size extending down and right.
|
|
| Rect(Double, Double, Double, Double) |
Construct the Rect given a horizontal and
vertical location, width and height.
|
| Name | Description | |
|---|---|---|
| Bottom |
The bottom border of the Rect.
|
|
| BottomLeft |
The Point at the bottom left of the
Rect.
|
|
| BottomRight |
The Point at the bottom right of the
Rect.
|
|
| Height |
The vertical dimensions of the Rect.
|
|
| IsEmpty |
Whether the rectangle has a positive
area
|
|
| Left |
The left border of the Rect.
|
|
| Position |
The top-left position of the Rect.
|
|
| Right |
The right border of the Rect.
|
|
| Size |
The dimensions of the Rect.
|
|
| Top |
The top border of the Rect.
|
|
| TopLeft |
The Point at the top left of the Rect.
|
|
| TopRight |
The Point at the top right of the Rect.
|
|
| Width |
The horizontal dimensions of the Rect.
|
|
| X |
The left border of the Rect.
|
|
| Y |
The top border of the Rect.
|
| Name | Description | |
|---|---|---|
| CompareTo |
Compares the current instance with another
object of the same type and returns an integer that indicates
whether the current instance precedes, follows, or occurs in the
same position in the sort order as the other object
|
|
| Contains(Rect, Point) |
Works out if a rect contains a point. A point
at the top or left of the rectangle is counted as contained but one
at the bottom or right is not. Thus an empty rectangle never
contains any points.
|
|
| Contains(Rect, Rect) |
Works out if one rect (a) completely contains
another (b). Identical rectangles are counted as contained.
|
|
| Contains(Rect, Point, Double) |
Works out if a rect contains a point. A point
at the top or left of the rectangle is counted as contained but one
at the bottom or right is not. Thus an empty rectangle never
contains any points.
|
|
| Equals(Object) |
Compare for equality.
(Overrides ValueTypeEquals(Object).) |
|
| Equals(Rect, Double) |
Compare for equality.
|
|
| GetHashCode |
Obtain a hash code for the Rect.
(Overrides ValueTypeGetHashCode.) |
|
| Intersect |
Find the intersection of two rectangles.
|
|
| IntersectsWith |
Determines if one rectangle intersects with
another.
|
|
| Round |
Round the dimensions of the rect to the
nearest integer.
|
|
| ToString |
Convert the Rect to a human readable string
such as \'X=10; Y=20; W=100; H=200\'.
(Overrides ValueTypeToString.) |
|
| ToString(IFormatProvider) |
Convert the Rect to a human readable string
such as \'X=10; Y=20; W=100; H=200\'.
|
|
| Union |
Determine the union of two supplied
rectangles. The union is the smallest rectangle that contains both
rectangles.
|
| Name | Description | |
|---|---|---|
| Addition(Rect, Point) |
Translate the Rect by adding a vector Point to
it.
|
|
| Addition(Rect, Size) |
Translate the Rect by adding a vector Size to
it.
|
|
| Division |
Scale the coordinates of the rect by a
dividing factor.
|
|
| Equality |
Compare two Rects for equality.
|
|
| Inequality |
Compare two Rects for inequality.
|
|
| Multiply |
Scale the coordinates of the rect by a
multiplying factor.
|
|
| Subtraction |
Translate the Rect by subtracting a vector
Point from it.
|