Sets the line parameters from a pair of X and Y coordinates that are unique points on the line. The first coordinate pair will be used as the reference point on the line. The direction of the line is from the first point to the second.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
Parameters
- x0
- Type: System Double
The x-coordinate of the first point. This is the x-coordinate of the line's reference point.
- y0
- Type: System Double
The y-coordinate of the first point. This is the y-coordinate of the line's reference point.
- x1
- Type: System Double
The x-coordinate of the second point.
- y1
- Type: System Double
The y-coordinate of the second point.
Exceptions
| Exception | Condition |
|---|---|
| CogShapeCoordinatesMustDifferException | The points specified are not unique |
Remarks
Sets the line properties from a pair of x-, y-coordinates that are unique points on the line. The first coordinate pair is the reference point of the line. The direction of the line is from the first point to the second.
See Also