Set this transform from the given parameters. Rotation and Skew are in radians.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- scaling
- Type: System Double
The Scaling factor.
- aspect
- Type: System Double
The aspect ratio.
- rotation
- Type: System Double
- skew
- 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 scaling, aspect, rotation, skew, or translation. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | scaling is zero. |
| ArgumentException | aspect is zero. |
| ArgumentException | skew is π/2 or −π/2 (when normalized to the range between π and −π). |
Remarks
Sets the scaling, aspect, rotation, skew, and/or translation of this transformation object.
See Also