SlopeInterceptItemGetSlope(FVector2, FVector2) Method

Return the slope of the line expressed by two points.

Definition

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

Parameters

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

Return Value

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

See Also