Quadrangle
Contents
[
Hide
]Quadrangle class
Stores a set of four Points that represent a Quadrangle region.
new Quadrangle(leftTop, rightTop, rightBottom, leftBottom)
Initializes a new instance of the Quadrangle structure with the describing points.
| Parameter | Description |
|---|---|
| leftTop | A Point that represents the left-top corner of the Quadrangle. |
| rightTop | A Point that represents the right-top corner of the Quadrangle. |
| rightBottom | A Point that represents the right-bottom corner of the Quadrangle. |
| leftBottom | A Point that represents the left-bottom corner of the Quadrangle. |
Methods
| Name | Description |
|---|---|
| contains(pt) | Determines if the specified Point is contained within this Quadrangle structure. |
| containsPoint(x, y) | Determines if the specified point is contained within this Quadrangle structure. |
| containsQuadrangle(quad) | Determines if the specified Quadrangle is contained or intersect this Quadrangle structure. |
| containsRectangle(rect) | Determines if the specified Rectangle is contained or intersect this Quadrangle structure. |
| equals(other) | Returns a value indicating whether this instance is equal to a specified Quadrangle value. |
| getBoundingRectangle() | Creates Rectangle bounding this Quadrangle |
| getLeftBottom() | Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region |
| getLeftTop() | Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region |
| getRightBottom() | Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region |
| getRightTop() | Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region |
| hashCode() | Returns the hash code for this instance. |
| isEmpty() | Tests whether all Points of this Quadrangle have values of zero.Value: Returns true if all Points of this Quadrangle hav |
| setLeftBottom() | Sets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region |
| setLeftTop() | Sets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region |
| setRightBottom() | Sets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region |
| setRightTop() | Sets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region |
| toString() | Returns a human-readable string representation of this Quadrangle. |