Sets coordinates StartX, StartY, EndX, EndY for the line segment.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
Parameters
- startX
- Type: System Double
X-coordinate of the start point.
- startY
- Type: System Double
Y-coordinate of the start point.
- endX
- Type: System Double
X-coordinate of the end point.
- endY
- Type: System Double
Y-coordinate of the end point.
Events
| Event Type | Reason |
|---|---|
| CogLineSegment Changed | Fires when the value of this property changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| CogShapeCoordinatesMustDifferException | Start and endpoint coordinates must be different. |
Remarks
Sets coordinates StartX, StartY, EndX, EndY for the line segment.
See Also