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: Vec2d
References
end
Public property
Signature
end: Vec2d
References
length
Public readonly property
Signature
get length(): number
start
Public property
Signature
start: Vec2d
References
u
Public property
Signature
u: Vec2d
References
ul
Public property
Signature
ul: number
Methods
getVertices()
Public method
Signature
getVertices(): Vec2d[]
References
hitTestLineSegment()
Public method
Signature
hitTestLineSegment(A: Vec2d, B: Vec2d, _zoom: number): boolean
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
boolean
References
midPoint()
Public method
Signature
midPoint(): Vec2d
References
nearestPoint()
Public method
Signature
nearestPoint(point: Vec2d): Vec2d
Parameters
Name | Description |
---|---|
|
|
Returns
Vec2d
References