Returns X and Y for the given point, whether it was used, and the distance to the fitted Line.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- index
- Type: System Int32
The index of the point.
- x
- Type: System Double
The x-coordinate of the point.
- y
- Type: System Double
The y-coordinate of the point.
- used
- Type: System Boolean
True if the point was used in the fit, false otherwise.
- distance
- Type: System Double
The distance from the point to the fitted shape.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | index is less than 0 or greater than or equal to NumPoints. |
Remarks
Returns the location of the given point, whether it was used in the fit, and the distance to the fitted CogLine.
See Also