Skip to content

Commit

Permalink
updated unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Acker committed Oct 16, 2024
1 parent f6523fd commit 538abf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/js/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// const distanceN = (v0, v1) => Math.hypot.apply(null, v0.map((v, i) => v - v1[i]));
// export const distanceN = (v0, v1) => Math.hypot(...v0.map((v, i) => v - v1[i]));
export const distance3 = (v0, v1) => Math.hypot(v0[0] - v1[0], v0[1] - v1[1], v0[2] - v1[2]); // subtract vectors, return length
export const trimPrefix = (str, prefix) => (str.startsWith(prefix) ? str.slice(prefix.length) : str).trim();
export const makeTd = (textContent) => { const td = document.createElement("td"); td.textContent = td.title = textContent; return td; };
Expand Down

0 comments on commit 538abf0

Please sign in to comment.