Version

Slope Method

Calculates the slope of a line given two known points.
Syntax
'Declaration
 
Public Shared Function Slope( _
   ByVal point1 As Point, _
   ByVal point2 As Point _
) As Double
public static double Slope( 
   Point point1,
   Point point2
)

Parameters

point1
One point on the line.
point2
A second point on the line.

Return Value

The slope of the line containing the points point1 and point2.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also