Point2d
Table of contents
Public class
Signature
class Point2d extends Geometry2d {}
References
Source
packages/editor/src/lib/primitives/geometry/Point2d.ts
Constructor
Public constructor
Constructs a new instance of the Point2d
class
Parameters
Name | Description |
---|---|
|
|
References
Properties
point
Public property
Signature
point: Vec
References
Methods
getVertices()
Public method
Signature
getVertices(): Vec[]
References
hitTestLineSegment()
Public method
Signature
hitTestLineSegment(A: Vec, B: Vec, margin: number): boolean
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
boolean
References
nearestPoint()
Public method
Signature
nearestPoint(): Vec
References