Line SetFromLineSegment Method Cognex VisionPro 9.22 SR1

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.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
Syntax

public void SetFromLineSegment(
	LineSegment lineSegment
)

Parameters

lineSegment
Type: Cognex.Vision LineSegment
The line segment used to specify the line.
Exceptions

ExceptionCondition
ShapeExceptionThe 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