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↳
PointsGeometry
#
Constructors#
constructor• new PointsGeometry(points
)
Create a points geometry.
throws
{GeometryTagError} Point coordinates must be valid basic coordinates.
#
ParametersName | Type | Description |
---|---|---|
points | number [][] | Array of 2D points on the basic coordinate system. The number of points must be greater than or equal to two. |
#
OverridesGeometry.constructor
#
Defined incomponent/tag/geometry/PointsGeometry.ts:29
#
Accessors#
points• get
points(): number
[][]
Get points property.
#
Returnsnumber
[][]
Array of 2d points.