Skip to content

Commit b1b511c

Browse files
committed
Use Number.EPSILON
1 parent f22c603 commit b1b511c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/raycasting/intersectOctree.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function intersectOctree(octree: Node, ray: Ray,
4444

4545
} else if(direction.x === 0.0) {
4646

47-
direction.x = 1e-16;
47+
direction.x = Number.EPSILON;
4848

4949
}
5050

@@ -56,7 +56,7 @@ export function intersectOctree(octree: Node, ray: Ray,
5656

5757
} else if(direction.y === 0.0) {
5858

59-
direction.y = 1e-16;
59+
direction.y = Number.EPSILON;
6060

6161
}
6262

@@ -68,7 +68,7 @@ export function intersectOctree(octree: Node, ray: Ray,
6868

6969
} else if(direction.z === 0.0) {
7070

71-
direction.z = 1e-16;
71+
direction.z = Number.EPSILON;
7272

7373
}
7474

0 commit comments

Comments
 (0)