Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 1.96 KB

File metadata and controls

83 lines (54 loc) · 1.96 KB
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

Quadrilateral

The Quadrilateral class represents a quadrilateral shape in 2D space, which contains an array of four points, representing the vertices of the quadrilateral.

Definition

Namespace: com.dynamsoft.core.basic_structures

Assembly: DynamsoftCore.aar

class Quadrilateral

Methods & Attributes

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.

points

Four vertexes in a clockwise direction of a quadrilateral. Index 0 represents the left-most vertex.

Point[] points;

contains

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.

getBoundingRect

Get the bounding rectangle of the quadrilateral.

Rect getBoundingRect();

Return Value

The bounding rectangle of the quadrilateral.

getArea

Get the area of the quadrilateral.

int getArea();

Return Value

The area of the quadrilateral.