Sets the line parameters from the specified CogLineSegment. StartX, StartY will be used as the reference point. The direction of the line is from the segment's StartX, StartY to the EndX, EndY.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
Syntax
Parameters
- lineSegment
- Type: Cognex.Vision LineSegment
The line segment used to specify the line.
Exceptions
| Exception | Condition |
|---|---|
| ShapeException | The points designated by the line segment are not unique |
Remarks
Sets the line parameters from the specified LineSegment. The line segment's StartX and StartY coordinates are used as the line's reference point. The direction of the line is from the line segment's ( StartX, StartY ) point to its ( EndX, EndY ) point.
See Also