Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

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

Attributes Summaries

Attributes Type Description
points android.graphics.Point[] Four vertexes in a clockwise direction of a quadrilateral. Index 0 represents the left-most vertex.

Method Summaries

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.

Attributes Details

points

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

Point[] points;

Method Details

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.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
    • Version 1.x
      • Version 1.2.1
      • Version 1.2.0
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
      • Version 1.1.11
      • Version 1.1.9
      • Version 1.1.8
      • Version 1.1.7
      • Version 1.1.6
      • Version 1.1.5
      • Version 1.1.4
      • Version 1.1.3
      • Version 1.1.2
      • Version 1.1.1
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support