Quadrangle
Quadrangle class
Namespace: Aspose.Barcode.Recognition
Stores a set of four Points that represent a Quadrangle region.
Constructors
| Name | Description |
|---|---|
| __construct | Initializes a new instance of the Quadrangle structure with the describing points. |
Methods
| Name | Static | Description |
|---|---|---|
| construct | Yes | |
| containsCoordinates | No | Determines if the specified point is contained within this Quadrangle structure. |
| containsPoint | No | Determines if the specified Point is contained within this Quadrangle structure. |
| containsQuadrangle | No | Determines if the specified Quadrangle is contained or intersect this Quadrangle structure. |
| containsRectangle | No | Determines if the specified Rectangle is contained or intersect this Quadrangle structure. |
| EMPTY | Yes | Represents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle |
| isEmpty | No | 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. |
Properties
| Name | Read/Write | Description |
|---|---|---|
| BoundingRectangle | Read-only | Creates Rectangle bounding this Quadrangle |
| LeftBottom | Read/Write | Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region |
| LeftTop | Read/Write | Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region |
| RightBottom | Read/Write | Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region |
| RightTop | Read/Write | Gets 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.
| Parameter | Type | Description |
|---|---|---|
$leftTop | Point | |
$rightTop | Point | |
$rightBottom | Point | |
$leftBottom | Point |
constructconstruct(QuadrangleDTO $quadrangleDTO) (static)
| Parameter | Type | Description |
|---|---|---|
$quadrangleDTO | QuadrangleDTO |
containsCoordinatescontainsCoordinates(int $x, int $y)
Determines if the specified point is contained within this Quadrangle structure.
| Parameter | Type | Description |
|---|---|---|
$x | int | |
$y | int |
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.
| Parameter | Type | Description |
|---|---|---|
$pt | Point |
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.
| Parameter | Type | Description |
|---|---|---|
$quad | Quadrangle |
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.
| Parameter | Type | Description |
|---|---|---|
$rect | Rectangle |
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
| Parameter | Type | Description |
|---|---|---|
$value | Point |
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
| Parameter | Type | Description |
|---|---|---|
$value | Point |
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
| Parameter | Type | Description |
|---|---|---|
$value | Point |
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
| Parameter | Type | Description |
|---|---|---|
$value | Point |