Example
Point to Line
geometric.pointToLine(line, point) returns the closest position on a line to a point.
Drag the blue point to see the closest point move along the line.
Closest point
[273.9, 297.0]
Distance
195.9px
Code
Example
geometric.pointToLine(line, point) returns the closest position on a line to a point.
Drag the blue point to see the closest point move along the line.
[273.9, 297.0]
195.9px
Code