Initialize this affine rectangle from its center point, SideXLength, SideYLength, Rotation (in radians) and Skew.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
Syntax
Parameters
- centerX
- Type: System Double
The x-coordinate of the center point.
- centerY
- Type: System Double
The y-coordinate of the center point.
- sideXLength
- Type: System Double
The length of side x (the side along the x-axis).
- sideYLength
- Type: System Double
The length of side y (the side along the y-axis).
- rotation
- Type: System Double
The rotation angle in radians.
- skew
- Type: System Double
The skew angle in radians.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | sideXLength is <= 0 or sideYLength is <= 0. |
Remarks
Changed Raised when the value of this property changes.
Remarks
Sets this affine rectangle from the specified center point, side x length, side y length, rotation angle, and skew angle.
To prevent degenerate affine rectangles, setting skew to within +/- 0.002 of +/-(π/2) causes the value to be set to either (-π/2 - 0.002) or (π/2 + 0.002) for negative and positive values of skew , respectively.
See Also