Robot.IK.Rotate180Degrees C# (CSharp) Method

Rotate180Degrees() public static method

public static Rotate180Degrees ( double angleToRotate ) : double
angleToRotate double
return double
        public static double Rotate180Degrees(double angleToRotate)
        {
            if(angleToRotate < 0)
            {
                return  -angleToRotate - 180;
            }

            return 180 - angleToRotate;
        }