Skip to content

five-on-it / apps/client/src/ui/studio/frame / alongLine

Function: alongLine() ​

alongLine(line, p): object

Defined in: apps/client/src/ui/studio/frame.ts:101

Where along a line a point is nearest: the share of the line's length there (0 at its start), and whether the point lies on its left looking along it.

Parameters ​

line ​

readonly Pt[]

p ​

Pt

Returns ​

object

left ​

left: boolean

share ​

share: number