@mocanvas/mocanvas · function

lineSegment

declare function lineSegment(a: VecLike, b: VecLike): CubicSegment

A straight line expressed as a cubic (control points at 1/3 and 2/3).

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.