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↳
PointGeometry
#
Constructors#
constructor• new PointGeometry(point
)
Create a point geometry.
throws
{GeometryTagError} Point coordinates must be valid basic coordinates.
#
ParametersName | Type | Description |
---|---|---|
point | number [] | An array representing the basic coordinates of the point. |
#
OverridesGeometry.constructor
#
Defined incomponent/tag/geometry/PointGeometry.ts:27
#
Accessors#
point• get
point(): number
[]
Get point property.
#
Returnsnumber
[]
Array representing the basic coordinates of the point.