CogLine SetXYRotation Method Cognex VisionPro 9.22 SR1
Sets the line's X and Y reference point and its Rotation in radians from the x-axis. The Rotation is normalized to the range -PI to PI.

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

public void SetXYRotation(
	double x,
	double y,
	double rotation
)

Parameters

x
Type: System Double

The x-coordinate of the line's reference point.

y
Type: System Double

The y-coordinate of the line's reference point.

rotation
Type: System Double

The line's rotation, measured in radians from the x-axis.

Remarks

Sets the x- and y-coordinates of the line's reference point and its rotation. Rotation is measured in radians from the x-axis. The rotation is normalized to the range -π to π.

See Also