I have to create a library with the following functions.
double dist (double x1, double y1, double x2, double y2); // Finds the distance between two points with coordinates (x1, y1) and (x2, y2), and returns the result.
- double slope (double x1, double y1, double x2, double y2); // Finds the slope of the line with end points (x1, y1) and (x2, y2), and returns the result.
- double angle (double x1, double y1, double x2, double y2); // Finds the angle (in degrees) that the line joining the two points makes with the x-axis.