aabb2_distance_sqr_to_point
aabb2_distance_sqr_to_point(x0, y0, x1, y1, px, py) ⇒ number
NOTE: The result is not a signed distance, any degree of penetration will produce 0 distance as a result
Kind: global function
Param | Type |
---|---|
x0 | number |
y0 | number |
x1 | number |
y1 | number |
px | number |
py | number |