SlopeInterceptItemGetSlope(FPoint, FPoint) Method

Return the slope of the line expressed by two points.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 25.2414.4032
C#
public static float GetSlope(
	FPoint pointA,
	FPoint pointB
)

Parameters

pointA  FPoint
The first end of the line to measure.
pointB  FPoint
The second end of the line to measure.

Return Value

Single
The algebraic slope of the line (y2 - y1) / (x2 - x1).

See Also