Quadrangle

Quadrangle class

Module: aspose_barcode.recognition.quadrangle

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

Constructors

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

Methods

NameReturn TypeStaticDescription
eqboolNoReturns a value indicating whether this instance is equal to a specified Quadrangle value.
hashintNoReturns the hash code for the current instance.
strstrNoReturns a human-readable string representation of this Quadrangle.
bounding_rectangleRectLikeNo
containsboolNo
contains_pointboolNo
contains_quadrangleboolNo
contains_rectangleboolNo
emptyQuadrangleYesRepresents a Quadrangle structure with its properties set to (0,0).
is_emptyboolNo

Properties

NameTypeDescription
left_bottomPointLike
left_topPointLike
right_bottomPointLike
right_topPointLike

Quadrangle Constructor

__init__(self, PointLike left_top, PointLike right_top, PointLike right_bottom, PointLike left_bottom) -> def

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

ParameterTypeDescription
left_topPointLike
right_topPointLike
right_bottomPointLike
left_bottomPointLike

Quadrangle.eq

__eq__(self, Quadrangle other) -> bool

Returns a value indicating whether this instance is equal to a specified Quadrangle value.

ParameterTypeDescription
otherQuadrangle

Return Type: bool — true if obj has the same value as this instance otherwise, false.

Quadrangle.hash

__hash__(self) -> int

Returns the hash code for the current instance.

Return Type: int — A hash code for the current object.

Quadrangle.str

__str__(self) -> str

Returns a human-readable string representation of this Quadrangle.

Return Type: str — A string that represents this Quadrangle.

Quadrangle.bounding_rectangle

bounding_rectangle(self) -> RectLike

Return Type: RectLike

Quadrangle.contains

contains(self, Union[PointLike, Quadrangle, RectLike, tuple[int, int]] obj) -> bool
ParameterTypeDescription
objUnion[PointLike, Quadrangle, RectLike, tuple[int, int]]

Return Type: bool

Quadrangle.contains_point

contains_point(self, int x, int y) -> bool
ParameterTypeDescription
xint
yint

Return Type: bool

Quadrangle.contains_quadrangle

contains_quadrangle(self, Quadrangle quad) -> bool
ParameterTypeDescription
quadQuadrangle

Return Type: bool

Quadrangle.contains_rectangle

contains_rectangle(self, RectLike rect) -> bool
ParameterTypeDescription
rectRectLike

Return Type: bool

Quadrangle.empty (static)

empty() -> Quadrangle

Represents a Quadrangle structure with its properties set to (0,0).

Return Type: Quadrangle

Quadrangle.is_empty

is_empty(self) -> bool

Return Type: bool

Quadrangle.left_bottom

Type: PointLike

ParameterTypeDescription
valuePointLike

Quadrangle.left_top

Type: PointLike

ParameterTypeDescription
valuePointLike

Quadrangle.right_bottom

Type: PointLike

ParameterTypeDescription
valuePointLike

Quadrangle.right_top

Type: PointLike

ParameterTypeDescription
valuePointLike