@mocanvas/editor · class

Edge2d

declare class Edge2d extends Polyline2d

One straight segment.


Methods · 4

constructor(config: Flags & {
get direction(): Vec

The unit direction from start to end.

getLength(): number
nearestPoint(point: VecLike): Vec

Properties · 2

readonly end: Vec
readonly start: Vec

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.