Quadrangle

Quadrangle class

Stores a set of four Points 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 Point of Quadrangle region
right_topGets right-top corner Point of Quadrangle region
right_bottomGets right-bottom corner Point of Quadrangle region
left_bottomGets left-bottom corner Point of Quadrangle region
is_emptyTests whether all Points of this Quadrangle have values of zero.
bounding_rectangleGets Rectangle bounding this Quadrangle
EMPTYRepresents a Quadrangle class with its properties left uninitialized.

Methods

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

See Also