Squared distance from p to the nearest point of r; 0 when inside.
p
r
The rectangle to process.
The point to process.
The converted number.
Squared distance from
pto the nearest point ofr; 0 when inside.