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: 91.0.0.0
public void SetScalingsRotationsTranslation(
double scalingX,
double scalingY,
double rotationX,
double rotationY,
double translationX,
double translationY
)
public void SetScalingsRotationsTranslation(
double scalingX,
double scalingY,
double rotationX,
double rotationY,
double translationX,
double translationY
)
Public Sub SetScalingsRotationsTranslation (
scalingX As Double,
scalingY As Double,
rotationX As Double,
rotationY As Double,
translationX As Double,
translationY As Double
)
Public Sub SetScalingsRotationsTranslation (
scalingX As Double,
scalingY As Double,
rotationX As Double,
rotationY As Double,
translationX As Double,
translationY As Double
)
public:
void SetScalingsRotationsTranslation(
double scalingX,
double scalingY,
double rotationX,
double rotationY,
double translationX,
double translationY
)
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.
| 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: |
| Exception | Condition |
|---|
| ArgumentException | scalingX is zero. |
| ArgumentException | scalingY is zero. |
| ArgumentException | rotationY is (rotationX ± π/2) when normalized to the range between π and −π. |
Sets the x- and y-axis scaling, rotation, and/or translation of this transformation object.