tsmathlib
Version:
Typescript Version Math/Physics/CG Library
18 lines (14 loc) • 520 B
text/typescript
/*
* @Author: Xu.Wang
* @Date: 2020-03-28 02:05:42
* @Last Modified by: Xu.Wang
* @Last Modified time: 2020-04-07 15:16:11
* @Description: Math Constants
*/
export const TS_PI = 3.14159265358979323846264338327950288
export const TS_HALF_PI = 1.57079632679489661923132169163975144
export const TS_QUARTER_PI = 0.785398163397448309615660845819875721
export const TS_EPSILON = Number.EPSILON
export const TS_HALF_EPSILON = 1e-8
export const TS_MAX_NUM = Number.MAX_VALUE
export const TS_MIN_NUM = Number.MIN_VALUE