Aspose.Barcode for PHP via Java Generation and Recognition API docs
|
Inherits BaseJavaClass.
Public Member Functions | |
__construct (Point $leftTop, Point $rightTop, Point $rightBottom, Point $leftBottom) | |
getLeftTop () | |
setLeftTop (Point $value) | |
getRightTop () | |
setRightTop (Point $value) | |
getRightBottom () | |
setRightBottom (Point $value) | |
getLeftBottom () | |
setLeftBottom (Point $value) | |
isEmpty () | |
contains (Point $pt) | |
containsPoint ($x, $y) | |
containsQuadrangle (Quadrangle $quad) | |
containsRectangle (Rectangle $rect) | |
equals (Quadrangle $other) | |
hashCode () | |
toString () | |
getBoundingRectangle () | |
Static Public Member Functions | |
static | EMPTY () |
static | op_Equality (Quadrangle $first, Quadrangle $second) |
static | op_Inequality (Quadrangle $first, Quadrangle $second) |
Stores a set of four Points that represent a Quadrangle region.
__construct | ( | Point | $leftTop, |
Point | $rightTop, | ||
Point | $rightBottom, | ||
Point | $leftBottom | ||
) |
Initializes a new instance of the Quadrangle structure with the describing points.
leftTop | A Point that represents the left-top corner of the Quadrangle. |
rightTop | A Point that represents the right-top corner of the Quadrangle. |
rightBottom | A Point that represents the right-bottom corner of the Quadrangle. |
leftBottom | A Point that represents the left-bottom corner of the Quadrangle. |
contains | ( | Point | $pt | ) |
Determines if the specified Point is contained within this Quadrangle structure.
pt | The Point to test. |
containsPoint | ( | $x, | |
$y | |||
) |
Determines if the specified point is contained within this Quadrangle structure.
x | The x point cordinate. |
y | The y point cordinate. |
containsQuadrangle | ( | Quadrangle | $quad | ) |
Determines if the specified Quadrangle is contained or intersect this Quadrangle structure.
quad | The Quadrangle to test. |
containsRectangle | ( | Rectangle | $rect | ) |
Determines if the specified Rectangle is contained or intersect this Quadrangle structure.
rect | The Rectangle to test. |
|
static |
Represents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle
equals | ( | Quadrangle | $other | ) |
Returns a value indicating whether this instance is equal to a specified Quadrangle value.
$other | An Quadrangle value to compare to this instance. |
getBoundingRectangle | ( | ) |
Creates Rectangle bounding this Quadrangle
getLeftBottom | ( | ) |
Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region
getLeftTop | ( | ) |
Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region
getRightBottom | ( | ) |
Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region
getRightTop | ( | ) |
Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region
hashCode | ( | ) |
Returns the hash code for this instance.
isEmpty | ( | ) |
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.
|
static |
Returns a value indicating whether the first Quadrangle value is equal to the second.
first | A first compared value |
second | A second compared value |
|
static |
Returns a value indicating if the first Quadrangle value is different from the second.
first | A first compared value |
second | A second compared value |
setLeftBottom | ( | Point | $value | ) |
Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region
setLeftTop | ( | Point | $value | ) |
Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region
setRightBottom | ( | Point | $value | ) |
Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region
setRightTop | ( | Point | $value | ) |
Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region
toString | ( | ) |
Returns a human-readable string representation of this Quadrangle.