Public class

Signature
class Polygon2d extends Polyline2d {}
References

Polyline2d

Source

packages/editor/src/lib/primitives/geometry/Polygon2d.ts


Constructor

Public constructor

Constructs a new instance of the Polygon2d class

Parameters
NameDescription

config

Omit<Geometry2dOptions, 'isClosed'> & {
  points: Vec[]
}
References

Vec


PointsSnapLinepolygonsIntersect