Line GetDistanceRotation Method Cognex VisionPro 9.22 SR1

Gets the line's Distance from the origin and its Rotation in radians from the x-axis. The Distance will be negative if the direction from the origin is reversed.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
Syntax

public void GetDistanceRotation(
	out double distance,
	out double rotation
)

Parameters

distance
Type: System Double 
The distance from the origin to the line.
rotation
Type: System Double 
The line's rotation, measured in radians from the x-axis.
Remarks

Gets the line's distance from the origin and its rotation in radians from the x-axis. The distance is negative if the direction from the origin is reversed. See SetDistanceRotation() for additional information and illustrations.

See Also