Returns the angle in radians of the segment between the given points.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.0.0.0
Syntax
Parameters
- startX
- Type: System Double
The x-coordinate of the start point.
- startY
- Type: System Double
The y-coordinate of the start point.
- endX
- Type: System Double
The x-coordinate of the end point.
- endY
- Type: System Double
The y-coordinate of the end point.
Return Value
Type: DoubleThe angle of the line segment.
Remarks
Returns the angle measured in radians from the x-axis of the segment between (startX,startY) and (endX,endY). The angle is normalized to the range -π to π.
See Also