abstract-3d 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,9 +47,9 @@ const TOLERANCE = 0.001;
47
47
  export const equals = (num1, num2, tolerance = TOLERANCE) => Math.abs(num1 - num2) <= tolerance;
48
48
  export const isZero = (num, tolerance = TOLERANCE) => Math.abs(num) <= tolerance;
49
49
  export const geq = (num1, num2, tolerance = TOLERANCE) => num1 >= num2 - tolerance;
50
- export const greater = (num1, num2, tolerance = TOLERANCE) => num1 > num2 - tolerance;
50
+ export const greater = (num1, num2, tolerance = TOLERANCE) => num1 > num2 + tolerance;
51
51
  export const leq = (num1, num2, tolerance = TOLERANCE) => num1 <= num2 + tolerance;
52
- export const less = (num1, num2, tolerance = TOLERANCE) => num1 < num2 + tolerance;
52
+ export const less = (num1, num2, tolerance = TOLERANCE) => num1 < num2 - tolerance;
53
53
  // -- Bounds
54
54
  export const bounds = (min, max) => ({ min, max });
55
55
  export const bounds2 = (min, max) => ({ min, max });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abstract-3d",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Abstract 3D",
5
5
  "author": "Divid AB <info@divid.se>",
6
6
  "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-3d",
@@ -36,5 +36,5 @@
36
36
  "@types/three": "^0.180.0",
37
37
  "react": "^19.0.0"
38
38
  },
39
- "gitHead": "34f08dc4cc94bd7b29b1db0f4e21a1dad25f1683"
39
+ "gitHead": "46cc9fb740f9c98f6cc37c41357c02bbde715f87"
40
40
  }
@@ -304,9 +304,9 @@ export const equals = (num1: number, num2: number, tolerance = TOLERANCE): boole
304
304
  Math.abs(num1 - num2) <= tolerance;
305
305
  export const isZero = (num: number, tolerance = TOLERANCE): boolean => Math.abs(num) <= tolerance;
306
306
  export const geq = (num1: number, num2: number, tolerance = TOLERANCE): boolean => num1 >= num2 - tolerance;
307
- export const greater = (num1: number, num2: number, tolerance = TOLERANCE): boolean => num1 > num2 - tolerance;
307
+ export const greater = (num1: number, num2: number, tolerance = TOLERANCE): boolean => num1 > num2 + tolerance;
308
308
  export const leq = (num1: number, num2: number, tolerance = TOLERANCE): boolean => num1 <= num2 + tolerance;
309
- export const less = (num1: number, num2: number, tolerance = TOLERANCE): boolean => num1 < num2 + tolerance;
309
+ export const less = (num1: number, num2: number, tolerance = TOLERANCE): boolean => num1 < num2 - tolerance;
310
310
 
311
311
  // -- Bounds
312
312