Quadrangle

Quadrangle class

Namespace: Aspose.Barcode.Recognition

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

Constructors

NameDescription
__constructInitializes a new instance of the Quadrangle structure with the describing points.

Methods

NameStaticDescription
constructYes
containsCoordinatesNoDetermines if the specified point is contained within this Quadrangle structure.
containsPointNoDetermines if the specified Point is contained within this Quadrangle structure.
containsQuadrangleNoDetermines if the specified Quadrangle is contained or intersect this Quadrangle structure.
containsRectangleNoDetermines if the specified Rectangle is contained or intersect this Quadrangle structure.
EMPTYYesRepresents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle
isEmptyNoTests 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.

Properties

NameRead/WriteDescription
BoundingRectangleRead-onlyCreates Rectangle bounding this Quadrangle
LeftBottomRead/WriteGets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region
LeftTopRead/WriteGets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region
RightBottomRead/WriteGets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region
RightTopRead/WriteGets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region

Quadrangle__construct(Point $leftTop, Point $rightTop, Point $rightBottom, Point $leftBottom)

Initializes a new instance of the Quadrangle structure with the describing points.

ParameterTypeDescription
$leftTopPoint
$rightTopPoint
$rightBottomPoint
$leftBottomPoint

constructconstruct(QuadrangleDTO $quadrangleDTO) (static)

ParameterTypeDescription
$quadrangleDTOQuadrangleDTO

containsCoordinatescontainsCoordinates(int $x, int $y)

Determines if the specified point is contained within this Quadrangle structure.

ParameterTypeDescription
$xint
$yint

Returns: bool Returns true if point is contained within this Quadrangle structure; otherwise, false.

containsPointcontainsPoint(Point $pt)

Determines if the specified Point is contained within this Quadrangle structure.

ParameterTypeDescription
$ptPoint

Returns: bool Returns true if Point is contained within this Quadrangle structure; otherwise, false.

containsQuadranglecontainsQuadrangle(Quadrangle $quad)

Determines if the specified Quadrangle is contained or intersect this Quadrangle structure.

ParameterTypeDescription
$quadQuadrangle

Returns: bool Returns true if Quadrangle is contained or intersect this Quadrangle structure; otherwise, false.

containsRectanglecontainsRectangle(Rectangle $rect)

Determines if the specified Rectangle is contained or intersect this Quadrangle structure.

ParameterTypeDescription
$rectRectangle

Returns: bool Returns true if Rectangle is contained or intersect this Quadrangle structure; otherwise, false.

EMPTYEMPTY() (static)

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

isEmptyisEmpty()

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.

BoundingRectangle

Access: Read-only

Returns: Rectangle returns Rectangle bounding this Quadrangle

Creates Rectangle bounding this Quadrangle

LeftBottom

Access: Read/Write

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

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

ParameterTypeDescription
$valuePoint

LeftTop

Access: Read/Write

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

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

ParameterTypeDescription
$valuePoint

RightBottom

Access: Read/Write

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

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

ParameterTypeDescription
$valuePoint

RightTop

Access: Read/Write

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

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

ParameterTypeDescription
$valuePoint