Summarize how to find the angle and distance between two points in XY coordinates. Language is Java
//Coordinates of 2 points
double x = 0;
double y = 0;
double x2 = 1;
double y2 = 1;
//Find the distance from the coordinates of two points
double distance = Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));
//Coordinates of 2 points
double x = 0;
double y = 0;
double x2 = 1;
double y2 = 1;
//Find the radian from the coordinates of two points
doble radian = Math.atan2(y2 - y, x2 - x);
//Find the degree from the radians
double degree = radian * 180 / Math.PI;