CogMath AnglePointPoint Method Cognex VisionPro 9.5
Returns the angle in radians of the segment between the given points.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax

public static double AnglePointPoint(
	double startX,
	double startY,
	double endX,
	double endY
)

Return Value

Type: Double

The angle of the line segment.

Remarks

Returns the angle measured in radians from the x-axis of the segment between (startX,startY) and (endX,endY). The angle is normalized to the range -π to π.

See Also