@mocanvas/mocanvas · function

getElbowMidPointFromPoint

declare function getElbowMidPointFromPoint(start: VecLike, end: VecLike, point: VecLike, axis: ElbowAxis): number

elbowMidPoint for a midpoint handle dragged to point: how far along axis it sits between the terminals, clamped to 0..1.

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.