Table of contents

Public class

Signature
class Point2d extends Geometry2d {}
References

Geometry2d

Source

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


Constructor

Public constructor

Constructs a new instance of the Point2d class

Parameters
NameDescription

config

Omit<
  Geometry2dOptions,
  'isClosed' | 'isFilled'
> & {
  margin: number
  point: Vec
}
References

Vec


Properties

point

Public property

Signature
point: Vec
References

Vec


Methods

getVertices()

Public method

Signature
getVertices(): Vec[]
References

Vec


hitTestLineSegment()

Public method

Signature
hitTestLineSegment(A: Vec, B: Vec, margin: number): boolean
Parameters
NameDescription

A

Vec

B

Vec

margin

number
Returns
boolean
References

Vec


nearestPoint()

Public method

Signature
nearestPoint(): Vec
References

Vec


PI2pointInPolygon