Cog3DShapeGeometricOperations AreRealPerpendicular Method Cognex VisionPro 9.8
Check whether one line and one plane are perpendicular within the specified tolerance, i.e., whether line3D is parallel to the normal vector of plane3D within epsilon . 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: 75.1.0.0
Syntax

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

Return Value

Type: Boolean
True if plane3D and line3D are perpendicular 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 cross product of line3D.Direction and plane3D.Normal. If the length of the cross product is less than or equal to epsilon, returns true, false otherwise
See Also