CogLine SetFromStartXYEndXY Method Cognex VisionPro 9.5
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.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.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
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