Python - Convert X, Y Rotation coordinates from Radians to Degrees
Question: I have been stuck working on this for hours and I'm not very good with this
kind of math so please bare with me.

I have 2 values that are in radians, `c[1]` and `c[3]`. I need to turn the
radians into degrees and I haven't the faintest idea what to do to these
numbers to get degrees out of them. I have been searching the internet far and
wide and I cant find anything that I can actually understand. I have tried
devising my own way to do it but I'm sure I'm not even close. I have tried the
following:

    
    
        z = (((c[1] * 180) + 180) + ((c[3] * 180) + 180))
        z = (((c[1] * math.pi) / 180) + ((c[3] * math.pi) / 180) / 2)
        z = (c[1] * (90/math.pi) - (c[3] * (90/math.pi)))
        z = math.atan2(c[3], c[1])
        z = (math.degrees(c[1]) + math.degrees(c[3])) * 2
        z = c[1]
        z = (math.asin(c[3]) / math.acos(c[1]))
    

How do I get a value in degrees from 2 radians?


Answer: degree to radian conversions are done with the equation (n deg)*(pi/180 deg).

    
    
    z = (c[1]*(math.pi/180.0) + (c[1]*(math.pi/180)
    

if it's something you need to do regularly make a function.

    
    
    def DegtoRad(deg):
        return (deg)*(math.pi/180)
    

or as a lambda

    
    
    DegtoRad = lambda x: x*(math.pi/180)
    

remember though if you havent imported math/math.pi none of this will work.
probably better to define pi with an actual literal variable up to your needs
of precision.

