Module physics/closest-2d
Functions
pointLine2dClosest
- pointLine2dClosest(sx1: number, sy1: number, sx2: number, sy2: number, px: number, py: number): { x: number; y: number }
-
Parameters
-
sx1: number
-
sy1: number
-
sx2: number
-
sy2: number
-
px: number
-
py: number
Returns { x: number; y: number }