CogTransform2DLinear SetScalingsRotationsTranslation Method Cognex VisionPro 9.24
Set this transform from the given parameters. RotationX and RotationY are in radians.

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

public void SetScalingsRotationsTranslation(
	double scalingX,
	double scalingY,
	double rotationX,
	double rotationY,
	double translationX,
	double translationY
)

Parameters

scalingX
Type: System Double

The scaling factor of the x-axis.

scalingY
Type: System Double

The scaling factor of the y-axis.

rotationX
Type: System Double

The rotation of the x-axis in radians.

rotationY
Type: System Double

The rotation of the y-axis in radians.

translationX
Type: System Double

The translation along the x-axis.

translationY
Type: System Double

The translation along the y-axis.

Events

Event TypeReason
CogTransform2DLinear Changed

Fires when you use this property to set the x- and y-axis scaling, rotation, or translation.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    scalingX is zero.

    ArgumentException

    scalingY is zero.

    ArgumentException

    rotationY is (rotationX ± π/2) when normalized to the range between π and −π.

    Remarks

    Sets the x- and y-axis scaling, rotation, and/or translation of this transformation object.

    See Also