layout | title | description | keywords | needGenerateH3Content | needAutoGenerateSidebar | noTitleIndex |
---|---|---|---|---|---|---|
default-layout |
Quadrilateral - Dynamsoft Core Module Android Edition API Reference |
The class Quadrilateral of Dynamsoft Core Module represents a quadrilateral shape in 2D space, which contains an array of four points, representing the vertices of the quadrilateral. |
quadrilateral, shape, 2D space, Java, Kotlin |
true |
true |
true |
The Quadrilateral
class represents a quadrilateral shape in 2D space, which contains an array of four points, representing the vertices of the quadrilateral.
Namespace: com.dynamsoft.core.basic_structures
Assembly: DynamsoftCore.aar
class Quadrilateral
Attributes | Type | Description |
---|---|---|
points |
android.graphics.Point[] | Four vertexes in a clockwise direction of a quadrilateral. Index 0 represents the left-most vertex. |
Method | Description |
---|---|
contains |
Check whether the input point is contained by the quadrilateral. |
getBoundingRect |
Get the bounding rectangle of the quadrilateral. |
getArea |
Get the area of the quadrilateral. |
Four vertexes in a clockwise direction of a quadrilateral. Index 0 represents the left-most vertex.
Point[] points;
Check whether the input point is contained by the quadrilateral.
boolean contains(Point point);
Parameters
[in] point
: Input a point.
Return Value
A boolean value that indicates whether the point is contained by the quadrilateral.
Get the bounding rectangle of the quadrilateral.
Rect getBoundingRect();
Return Value
The bounding rectangle of the quadrilateral.
Get the area of the quadrilateral.
int getArea();
Return Value
The area of the quadrilateral.