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;
}
1
Contributor
0
Replies
3
Views
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.