UNPKG

@zenghawtin/graph2d

Version:

Javascript library for 2d geometry

40 lines (35 loc) 759 B
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;