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: 93.1.0.0
public void SetScalingAspectRotationSkewTranslation(
double scaling,
double aspect,
double rotation,
double skew,
double translationX,
double translationY
)
public void SetScalingAspectRotationSkewTranslation(
double scaling,
double aspect,
double rotation,
double skew,
double translationX,
double translationY
)
Public Sub SetScalingAspectRotationSkewTranslation (
scaling As Double,
aspect As Double,
rotation As Double,
skew As Double,
translationX As Double,
translationY As Double
)
Public Sub SetScalingAspectRotationSkewTranslation (
scaling As Double,
aspect As Double,
rotation As Double,
skew As Double,
translationX As Double,
translationY As Double
)
public:
void SetScalingAspectRotationSkewTranslation(
double scaling,
double aspect,
double rotation,
double skew,
double translationX,
double translationY
)
public:
void SetScalingAspectRotationSkewTranslation(
double scaling,
double aspect,
double rotation,
double skew,
double translationX,
double translationY
)
Parameters
- scaling
- Type: System Double
The Scaling factor.
- aspect
- Type: System Double
The aspect ratio.
- rotation
- Type: System Double
The angle of Rotation in radians.
- skew
- Type: System Double
The skew angle in radians.
- translationX
- Type: System Double
The translation along the x-axis.
- translationY
- Type: System Double
The translation along the y-axis.
| 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: |
| Exception | Condition |
|---|
| ArgumentException | scaling is zero. |
| ArgumentException | aspect is zero. |
| ArgumentException | skew is π/2 or −π/2 (when normalized to the range between π and −π). |
Sets the scaling, aspect, rotation, skew, and/or translation of this transformation object.