Home Reference Source Test

src/const.js

/**
 * Constant for converting radians to degrees
 */
export const RAD2DEG = 180 / Math.PI;
/**
 * Constant for converting degrees to radians
 */
export const DEG2RAD = Math.PI / 180;
/**
 * PI
 */
export const PI = Math.PI;
/**
 * Two times PI
 */
export const TAU = 2 * Math.PI;
/**
 * Semi PI
 */
export const SPI = Math.PI / 2;
/**
 * Quarter PI
 */
export const QPI = Math.PI / 4;

/**
 * Epsilon
 */
export const EPSILON = Number.EPSILON;