Quadrangle

Quadrangle class

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

The Quadrangle type exposes the following members:

Constructors

NameDescription
Quadrangle()Initializes a new empty instance of the Quadrangle class.
Quadrangle(left_top, right_top, right_bottom, left_bottom)Initializes a new instance of the Quadrangle class

Properties

NameDescription
left_topGets left-top corner of Quadrangle region
right_topGets right-top corner of Quadrangle region
right_bottomGets right-bottom corner of Quadrangle region
left_bottomGets left-bottom corner of Quadrangle region
is_emptyTests whether all s of this Quadrangle have values of zero.
bounding_rectangleGets bounding this Quadrangle
EMPTYRepresents a Quadrangle class with its properties left uninitialized.

Methods

NameDescription
contains(pt)Determines if the specified is contained within this Quadrangle class.
contains(x, y)
contains(quad)Determines if the specified is contained within this Quadrangle class.
contains(rect)Determines if the specified is contained or intersect this Quadrangle class.
equals(other)Returns a value indicating whether this instance is equal to a specified Quadrangle value.

See Also