/src/away3d/core/math/MathConsts.as

http://github.com/away3d/away3d-core-fp11 · ActionScript · 19 lines · 8 code · 2 blank · 9 comment · 0 complexity · 9f7658910eb3c0deede49b55fdaa9442 MD5 · raw file

  1. package away3d.core.math
  2. {
  3. /**
  4. * MathConsts provides some commonly used mathematical constants
  5. */
  6. public class MathConsts
  7. {
  8. /**
  9. * The amount to multiply with when converting radians to degrees.
  10. */
  11. public static const RADIANS_TO_DEGREES:Number = 180/Math.PI;
  12. /**
  13. * The amount to multiply with when converting degrees to radians.
  14. */
  15. public static const DEGREES_TO_RADIANS:Number = Math.PI/180;
  16. }
  17. }