Quadrangle

Quadrangle class

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

public class Quadrangle : joint.BaseJavaClass

Constructors

NameDescription
Quadrangle(object, object, object, object)Initializes a new instance of the Quadrangle structure with the describing points.

Methods

NameDescription
EMPTYRepresents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle.
construct(object)
contains(object)Determines if the specified Point is contained within this Quadrangle structure.
containsPoint(object, object)Determines if the specified point is contained within this Quadrangle structure.
containsQuadrangle(object)Determines if the specified Quadrangle is contained or intersect this Quadrangle structure.
containsRectangle(object)Determines if the specified Rectangle is contained or intersect this Quadrangle structure.
equals(object)Returns a value indicating whether this instance is equal to a specified Quadrangle value.
getBoundingRectangleCreates Rectangle bounding this Quadrangle.
getLeftBottomGets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region.
getLeftTopGets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region.
getRightBottomGets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region.
getRightTopGets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region.
hashCodeReturns the hash code for this instance.
init
isEmptyTests 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.
javaClassName
setLeftBottom(object)Sets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region.
setLeftTop(object)Sets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region.
setRightBottom(object)Sets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region.
setRightTop(object)Sets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region.
toStringReturns a human-readable string representation of this Quadrangle.

Fields

NameDescription
leftBottom
leftTop
rightBottom
rightTop

See Also