CogTransform2DLinear MapAngle Method Cognex VisionPro 9.20
Maps the given angle (in radians) through this transform and returns the result (in radians).

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 80.0.0.0
Syntax

public double MapAngle(
	double angle
)

Return Value

Type: Double

The mapped angle.

Remarks

Maps the given angle in radians through this transformation.

The operation of MapAngle(Double) is equivalent to creating a unit vector at the given angle, mapping the vector, and then computing the rotation angle of the mapped vector. The following code uses other VisionPro methods to illustrate what MapAngle(Double) does. This example does not represent actual code you need to enter.

Dim angle as Double angle = ICogMisc.DegToRad(45) Dim MappedX as Double Dim MappedY as Double objCogTransform2DLinear.MapVector(Cos(angle), Sin(angle), MappedX, MappedY) Dim MappedAngle as Double MappedAngle = ARCTAN(MappedY, MappedX)
See Also