line2_distance_to_point_sqr
line2_distance_to_point_sqr(x0, y0, x1, y1, px, py)
Computes squared shortest distance between a line segment(defined by 2 points) and a point
Kind: global function
Param | Type |
---|---|
x0 | number |
y0 | number |
x1 | number |
y1 | number |
px | number |
py | number |