Returns a point perpendicular to line at a specified distance. Use negative distances for the other side of line.
line
distance
// Project a point 100 units away from line, at its midpoint.const pt = Lines.perpendicularPoint(line, 100, 0.5); Copy
// Project a point 100 units away from line, at its midpoint.const pt = Lines.perpendicularPoint(line, 100, 0.5);
Line
Distance from line. Use negatives to flip side
Relative place on line to project point from. 0 projects from A, 0.5 from the middle, 1 from B.
Returns a point perpendicular to
line
at a specifieddistance
. Use negative distances for the other side of line.