Calculates the squared distance between two points.
source x position.
dest x position.
source y position.
dest y position.
return the squared distance value.
Calculates the squared distance between two points.