ToRad and ToDeg

Converts between radients and degrees.

 (module
  (func $toRad (export "toRad") (param $x f32) (result f32)
    get_local $x
    f32.const 0.017453292519943295769222222222
    f32.mul
  )
  (func $toDeg (export "toDeg") (param $x f32) (result f32)
    get_local $x
    f32.const 57.295779513082320876846364344191
    f32.mul
  )
)

Last updated