Initialize this affine rectangle from the three corner points: Origin, CornerX, and CornerY.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- originX
- Type: System Double
The x-coordinate of corner point origin (Po).
- originY
- Type: System Double
The y-coordinate of corner point origin (Po).
- cornerXX
- Type: System Double
The x-coordinate of corner point x (Px).
- cornerXY
- Type: System Double
The y-coordinate of corner point x (Px).
- cornerYX
- Type: System Double
The x-coordinate of corner point y (Py).
- cornerYY
- Type: System Double
The y-coordinate of corner point y (Py).
Events
| Event Type | Reason |
|---|---|
| CogRectangleAffine Changed | Fires when the value of this property changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| CogShapeNotRectangleException | The three points are not unique. |
Remarks
Sets this affine rectangle from the specified origin point (Po), corner point x (Px), and corner point y (Py) as shown in the following illustration:
See Also