Skip to main content

Class: PointsGeometry

component.PointsGeometry

classdesc Represents a point set in the 2D basic image coordinate system.

example

var points = [[0.5, 0.3], [0.7, 0.3], [0.6, 0.5]];var pointsGeometry = new PointsGeometry(points);

Hierarchy#

Constructors#

constructor#

• new PointsGeometry(points)

Create a points geometry.

throws {GeometryTagError} Point coordinates must be valid basic coordinates.

Parameters#

NameTypeDescription
pointsnumber[][]Array of 2D points on the basic coordinate system. The number of points must be greater than or equal to two.

Overrides#

Geometry.constructor

Defined in#

component/tag/geometry/PointsGeometry.ts:29

Accessors#

points#

• get points(): number[][]

Get points property.

Returns#

number[][]

Array of 2d points.

Defined in#

component/tag/geometry/PointsGeometry.ts:53