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

Convert the angle COMMON_RADIANS radians into degrees.

COMMON_DEGREES°

To convert from radians to degrees, you multiply by 180^{\circ} and then divide by \pi.

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

  • wrongCommonAngle( COMMON_INDEX, 1 ).deg°
  • wrongCommonAngle( COMMON_INDEX, 2 ).deg°
  • wrongCommonAngle( COMMON_INDEX, 3 ).deg°

Convert the angle NUM_RADIANS radians into degrees. (Round to the nearest degree.)

round(NUM_DEGREES)°

To convert from radians to degrees, you multiply by 180^{\circ} and then divide by \pi.

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

  • wrongDegrees( NUM_DEGREES )°
  • wrongDegrees( NUM_DEGREES )°
  • wrongDegrees( NUM_DEGREES )°