Cog3DShapeGeometricOperations AreRealParallel Method (Cog3DLine, Cog3DPlane, Double)Cognex VisionPro 9.20
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: 80.0.0.0
Syntax

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

Parameters

line3D
Type: Cognex.VisionPro3D Cog3DLine
The 3D line. May not be null.
plane3D
Type: Cognex.VisionPro3D Cog3DPlane
The 3D plane. May not be null.
epsilon
Type: System Double
The tolerance used in checking.

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