Quadrangle

Quadrangle

Stores a set of four Points that represent a Quadrangle region.

Constructor

new Quadrangle(leftTop, rightTop, rightBottom, leftBottom)

Initializes a new instance of the Quadrangle structure with the describing points.
Parameters:
Name Type 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.
Source:

Members

EMPTY

Represents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle
Source:

Methods

contains(pt)

Determines if the specified Point is contained within this Quadrangle structure.
Parameters:
Name Type Description
pt The Point to test.
Returns:
Type Description
true if Point is contained within this Quadrangle structure; otherwise, false.
Source:

containsPoint(x, y)

Determines if the specified point is contained within this Quadrangle structure.
Parameters:
Name Type Description
x The x point cordinate.
y The y point cordinate.
Returns:
Type Description
Returns true if point is contained within this Quadrangle structure; otherwise, false.
Source:

containsQuadrangle(quad)

Determines if the specified Quadrangle is contained or intersect this Quadrangle structure.
Parameters:
Name Type Description
quad The Quadrangle to test.
Returns:
Type Description
Returns true if Quadrangle is contained or intersect this Quadrangle structure; otherwise, false.
Source:

containsRectangle(rect)

Determines if the specified Rectangle is contained or intersect this Quadrangle structure.
Parameters:
Name Type Description
rect The Rectangle to test.
Returns:
Type Description
Returns true if Rectangle is contained or intersect this Quadrangle structure; otherwise, false.
Source:

equals(other)

Returns a value indicating whether this instance is equal to a specified Quadrangle value.
Parameters:
Name Type Description
other An Quadrangle value to compare to this instance.
Returns:
Type Description
true if obj has the same value as this instance; otherwise, false.
Source:

getBoundingRectangle()

Creates Rectangle bounding this Quadrangle
Returns:
Type Description
returns Rectangle bounding this Quadrangle
Source:

getLeftBottom()

Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region
Source:

getLeftTop()

Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region
Source:

getRightBottom()

Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region
Source:

getRightTop()

Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region
Source:

hashCode()

Returns the hash code for this instance.
Returns:
Type Description
A 32-bit signed integer hash code.
Source:

isEmpty()

Tests whether all Points of this Quadrangle have values of zero.Value: Returns true if all Points of this Quadrangle have values of zero; otherwise, false.
Source:

setLeftBottom()

Sets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region
Source:

setLeftTop()

Sets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region
Source:

setRightBottom()

Sets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region
Source:

setRightTop()

Sets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region
Source:

toString()

Returns a human-readable string representation of this Quadrangle.
Returns:
Type Description
A string that represents this Quadrangle.
Source: