Donate $1 now to see this question answered quickly
Sponsored questions offer a monetary incentive to answerers to produce quality responses.
Be intelligently matched with 5 likely answerers who will be alerted to help.
Calculate the slope between two points.
private static double GetSlope(PointF point1, PointF point2)
//slope is delta-y/delta-x
double deltaX = (double)(point2.X - point1.X);
double deltaY = (double)(point2.Y - point1.Y);
return deltaY / deltaX;