Line SetFromStartXYEndXY Method Cognex VisionPro 9.20

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.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
Syntax

public void SetFromStartXYEndXY(
	double x0,
	double y0,
	double x1,
	double y1
)

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

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