Compute the pair of nearest points between two lines.
It is the caller responsibility to map the shapes to a common 3D
space before calling this method.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- lineA
- Type: Cognex.VisionPro3D Cog3DLine
The first line. May not be null.
- lineB
- Type: Cognex.VisionPro3D Cog3DLine
The second line. May not be null.
- pointOnLineA
- Type: Cognex.VisionPro3D Cog3DVect3
This output parameter is a point on lineA. The distance between pointOnLineA and pointOnLineB is the shortest distance between lineA and lineB.
- pointOnLineB
- Type: Cognex.VisionPro3D Cog3DVect3
This output parameter is a point on lineB. The distance between pointOnLineA and pointOnLineB is the shortest distance between lineA and lineB.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If lineA or lineB is null. |
Remarks
See Also