Hide menu
Loading...
Searching...
No Matches
Vertex

Defines a vertex.

A vertex is a topological point.

Extends

Constructors

Constructor

new Vertex(point): Vertex

Creates a vertex at the specified point.

Parameters

point

Point

Point assigned to the vertex.

Returns

Vertex

Overrides

Shape.constructor

Properties

point

readonly point: Point

Point assigned to the vertex.


triangulation

triangulation: VertexTriangulation | null = null

Polygonal representation of the vertex.

The default value is null.

Accessors

id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

Shape.id


name

Get Signature

get name(): string | null

Name of the shape.

The default value is null.

Returns

string | null

Set Signature

set name(name): void

Sets the name of the shape.

Parameters

name

string | null

Shape name.

Returns

void

Inherited from

Shape.name


type

Get Signature

get type(): ShapeType

Type of the shape.

Returns

ShapeType

Inherited from

Shape.type