Calculates the angle between a line and the horizontal line.

C# | Visual Basic | Visual C++ |
public static float Angle( float px1, float py1, float px2, float py2 )
Public Shared Function Angle ( _ px1 As Single, _ py1 As Single, _ px2 As Single, _ py2 As Single _ ) As Single
public: static float Angle( float px1, float py1, float px2, float py2 )

- px1 (Single)
- The x position of the first point of the line.
- py1 (Single)
- The y position of the first point of the line.
- px2 (Single)
- The x position of the second point of the line.
- py2 (Single)
- The y position of the second point of the line.

The calculated angle, in radians