UNPKG

flatten-js

Version:

Javascript library for 2d geometry

1 lines 1.01 kB
{"dependencies":[{"name":"C:\\Users\\alexbol\\WebstormProjects\\flatten-js\\package.json","includedInParent":true,"mtime":1520238055570}],"generated":{"js":"/**\r\n * Created by Alex Bol on 2/18/2017.\r\n */\n\nvar DP_TOL = 0.000001;\nvar DECIMALS = 3;\n\nmodule.exports = {\n DP_TOL: DP_TOL,\n /**\r\n * @return {boolean}\r\n */\n EQ_0: function EQ_0(x) {\n return x < DP_TOL && x > -DP_TOL;\n },\n /**\r\n * @return {boolean}\r\n */\n EQ: function EQ(x, y) {\n return x - y < DP_TOL && x - y > -DP_TOL;\n },\n /**\r\n * @return {boolean}\r\n */\n GT: function GT(x, y) {\n return x - y > DP_TOL;\n },\n /**\r\n * @return {boolean}\r\n */\n GE: function GE(x, y) {\n return x - y > -DP_TOL;\n },\n /**\r\n * @return {boolean}\r\n */\n LT: function LT(x, y) {\n return x - y < -DP_TOL;\n },\n /**\r\n * @return {boolean}\r\n */\n LE: function LE(x, y) {\n return x - y < DP_TOL;\n }\n};"},"hash":"50e1f068f37835aea4d7d6433f6eb6a6","cacheData":{"env":{}}}