Skip to content

Commit ba2f351

Browse files
committed
Added the consts back into Math
1 parent 43dd0a6 commit ba2f351

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

v3/src/math/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
var RND = require('./random-data-generator/RandomDataGenerator');
2+
13
module.exports = {
24

5+
// Consts
6+
PI2: Math.PI * 2,
7+
TAU: Math.PI * 0.5,
8+
EPSILON: 1.0e-6,
9+
DEG_TO_RAD: Math.PI / 180,
10+
RAD_TO_DEG: 180 / Math.PI,
11+
12+
// Random Data Generator
13+
RND: new RND(),
14+
315
// Collections of functions
416
Angle: require('./angle/'),
517
Distance: require('./distance/'),

0 commit comments

Comments
 (0)