Skip to content

Commit

Permalink
fix(lint): Fix issues in Ellipsoid and WebXR
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis committed Dec 11, 2023
1 parent 9caa3fd commit 2edf9b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Core/Math/Ellipsoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class Ellipsoid {
// var back = (t1 <= EPSILON || t2 <= EPSILON); // If only one intersection (t>0) then we are inside the ellipsoid and the intersection is at the back of the ellipsoid
let t = 0;
if (t1 <= EPSILON) { t = t2; } else
if (t2 <= EPSILON) { t = t1; } else { t = (t1 < t2) ? t1 : t2; }
if (t2 <= EPSILON) { t = t1; } else { t = (t1 < t2) ? t1 : t2; }

if (t < EPSILON) { return false; } // Too close to intersection

Expand Down
2 changes: 0 additions & 2 deletions src/Renderer/WebXR.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global XRRigidTransform */

import * as THREE from 'three';

async function shutdownXR(session) {
Expand Down

0 comments on commit 2edf9b8

Please sign in to comment.