PageRenderTime 384ms CodeModel.GetById 150ms app.highlight 2ms RepoModel.GetById 230ms app.codeStats 0ms

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