Set this transform from the given parameters. RotationX and RotationY are in radians.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
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
- rotationY
- Type: System Double
- translationX
- Type: System Double
The translation along the x-axis.
- translationY
- Type: System Double
The translation along the y-axis.
Events
| Event Type | Reason |
|---|---|
| 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
| Exception | Condition |
|---|---|
| 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