To find the shortest distance of two points you can use the following formula d = √ x 2 + y 2