Since this format always works it can be turned into a formula. X1 64 y1 3 x2 107 y2 4 Output. Given two coordinates of a line starting is x1y1 and ending is x2y2 find out the mid-point of a line.
To find the distance between two points x 1 y 1 and x 2 y 2 all that you need to do is use the coordinates of these ordered pairs and apply the formula pictured below.
We will use the distance formula derived from Pythagorean theorem. X1 1 y1 2 x2 3 y2 6 Output. See the answer 215 Geometry. Param args the command line arguments public static void main String args Scanner input new Scanner Systemin.