rand(360) roundTo( 2, toRadians(NUM_DEGREES) ) rand( commonAngles.length ) commonAngles[COMMON_INDEX].deg commonAngles[COMMON_INDEX].rad

Convierte el ángulo COMMON_RADIANS radianes a grados.

COMMON_DEGREES\Large{^\circ}

Para convertir de radianes a grados, multiplicas por 180^{\circ} y luego divides entre \pi.

COMMON_RADIANS \times \frac{180^{\circ}}{\pi}

COMMON_DEGREES^{\circ}

Convierte el ángulo NUM_RADIANS radianes a grados. (Redondea al grado más cercano.)

NUM_DEGREES\Large{^\circ}

Para convertir de radianes a grados, multiplicas por 180^{\circ} y luego divides entre \pi.

NUM_RADIANS \times \frac{180^{\circ}}{\pi}

NUM_DEGREES^{\circ} (aquí redondeado al grado más cercano)