MCPcopy Create free account
hub / github.com/NikLever/ThreeJS-PathEditor /

Class

geometry.js:1–1  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export 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)) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected