CogLine GetDistanceRotation Method Cognex VisionPro 9.8
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.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.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(Double, Double) for additional information and illustrations.

See Also