Table of contents

Corner

The Corner class represents a corner, typically where two line segments meet

Definition

Namespace: com.dynamsoft.core.basic_structures

Assembly: DynamsoftCaptureVisionBundle.aar

class Corner

Attributes & Methods

Attributes Type Description
type int The type of the corner. The types are availabled as normal-intersected, T-intersected, cross-intersected, not-intersected.
intersection android.graphics.Point The coordinate of the intersection point of the corner.
line1 LineSegment One of the lines of the corner. Defined in LineSegment.
line2 LineSegment One of the lines of the corner. Defined in LineSegment.
Method Description
Corner The default constructor.
Corner(type,insection,line1,line2) Constructs a corner from the type, intersection, and lines.
transformByMatrix Transforms the coordinates of the corner by a transformation matrix.

type

The type of the corner. The types are availabled as normal-intersected, T-intersected, cross-intersected, not-intersected.

@EnumCornerType
int type;

Related APIs:

intersection

The coordinate of the intersection point of the corner.

Point intersection;

line1

One of the lines of the corner. Defined in LineSegment.

LineSegment line1;

line2

One of the lines of the corner. Defined in LineSegment.

LineSegment line2;

Corner

The default constructor.

Corner();

Corner(type,insection,line1,line2)

Constructs a corner from the type, intersection, and lines.

Corner(int type,Point intersection,LineSegment line1,LineSegment line2);

transformByMatrix

Transforms the coordinates of the corner by a transformation matrix.

Corner transformByMatrix(Matrix matrix);

Parameters

matrix: The transformation matrix.

Return Value

The transformed corner.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: