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

Convert the angle COMMON_DEGREES° into radians.

COMMON_RADIANS

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

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

  • wrongCommonAngle( COMMON_INDEX, 1 ).rad
  • wrongCommonAngle( COMMON_INDEX, 2 ).rad
  • wrongCommonAngle( COMMON_INDEX, 3 ).rad

Convert the angle NUM_DEGREES° into radians. (Round to the nearest hundredth of a radian.)

NUM_RADIANS.toFixed( 2 )

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

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

  • wrongRadians( NUM_RADIANS ).toFixed( 2 )
  • wrongRadians( NUM_RADIANS ).toFixed( 2 )
  • wrongRadians( NUM_RADIANS ).toFixed( 2 )