| 1 | export class Geometry{ |
| 2 | //Returns {.x, .y}, a projected point perpendicular on the (infinite) line. |
| 3 | static calcNearestPointOnLine(line1, line2, pnt) { |
| 4 | const L2 = ( ((line2.x - line1.x) * (line2.x - line1.x)) + ((line2.y - line1.y) * (line2.y - line1.y)) ); |
nothing calls this directly
no outgoing calls
no test coverage detected