Cog3DShapeGeometricOperations AreRealParallel Method (Cog3DLine, Cog3DPlane, Double)Cognex VisionPro
Check whether one line and one plane are parallel within the specified tolerance, i.e., whether line3D is perpendicular to the normal vector of plane3D within the specified tolerance. It is the caller responsibility to map the shapes to a common 3D space before calling this method.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 65.1.0.0
Syntax

public static bool AreRealParallel(
	Cog3DLine line3D,
	Cog3DPlane plane3D,
	double epsilon
)

Return Value

Type: Boolean
True if plane3D and line3D are parallel within the specified tolerance, false otherwise.
Exceptions

ExceptionCondition
ArgumentNullException If plane3D or line3D is null.
ArgumentException If plane3D is degenerate or line3D is degenerate.
Remarks

This method computes the dot product of line3D.Direction and plane3D.Normal. If the absolute value of the dot product is less than or equal to epsilon, returns true, false otherwise
See Also