Maps the given angle (in radians) through this transform and returns the result (in radians).
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.0.0.0
Syntax
Parameters
- angle
- Type: System Double
The angle to map.
Return Value
Type: DoubleThe 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