Skip to main content

Class: PointGeometry

component.PointGeometry

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

example

var basicPoint = [0.5, 0.7];var pointGeometry = new PointGeometry(basicPoint);

Hierarchy#

Constructors#

constructor#

• new PointGeometry(point)

Create a point geometry.

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

Parameters#

NameTypeDescription
pointnumber[]An array representing the basic coordinates of the point.

Overrides#

Geometry.constructor

Defined in#

component/tag/geometry/PointGeometry.ts:27

Accessors#

point#

• get point(): number[]

Get point property.

Returns#

number[]

Array representing the basic coordinates of the point.

Defined in#

component/tag/geometry/PointGeometry.ts:44