@flatten-js/core
Version:
Javascript library for 2d geometry
34 lines (29 loc) • 804 B
JavaScript
import * as Constants from './utils/constants';
import * as Utils from './utils/utils';
let Flatten = {
Utils: Utils,
Errors: undefined,
Matrix: undefined,
Planar_set: undefined,
Point: undefined,
Vector: undefined,
Line: undefined,
Circle: undefined,
Segment: undefined,
Arc: undefined,
Box: undefined,
Edge: undefined,
Face: undefined,
Ray: undefined,
Ray_shooting: undefined,
Multiline: undefined,
Polygon: undefined,
Distance: undefined,
Inversion: undefined
};
for (let c in Constants) {Flatten[c] = Constants[c]}
Object.defineProperty(Flatten, 'DP_TOL', {
get:function(){return Utils.getTolerance()},
set:function(value){Utils.setTolerance(value)}
});
export default Flatten;