Constructs a Cog3DLine using parameterizationType to interpret v1 and v2.
If parameterizationType is Points and v1 is equal to v2, then the line is degenerate.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- v1
- Type: Cognex.VisionPro3D Cog3DVect3
A point on the line.
- v2
- Type: Cognex.VisionPro3D Cog3DVect3
If parameterizationType is Points, then v2 is interpreted as a point on the line and the line's direction is from v1 to v2. If parameterizationType is PointAndDirection, then v2 is interpreted as a direction vector and will be normalized to a unit vector.
- parameterizationType
- Type: Cognex.VisionPro3D Cog3DLine ParameterizationType
Specifies how v1 and v2 are interpreted.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | If parameterizationType is PointAndDirection and v2 is a degenerate direction i.e. (0,0,0). |
See Also