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