NGL@1.0.0-beta.7 Home Manual Reference Source Gallery

src/math/math-constants.js

/**
 * @file Math Constants
 * @author Alexander Rose <alexander.rose@weirdbyte.de>
 * @private
 */

var EPS = 0.0000001
var TwoPI = 2 * Math.PI

var DEG2RAD = Math.PI / 180
var RAD2DEG = 180 / Math.PI

export {
  EPS,
  TwoPI,
  DEG2RAD,
  RAD2DEG
}