fix: some linting for new proto 2

This commit is contained in:
TrèsAbhi committed 2024-10-05 15:57:34 -05:00
1 parent 94f67e30f1
commit 79bc259565
22 files changed
+183 -163

No files matched your search

@@ -2,12 +2,15 @@ import { BoundingBox } from '@blitzkit/core';
export function unionBoundingBox(a: BoundingBox, b: BoundingBox) {
return {
// min: a.min.map((a, index) => Math.min(a, b.min[index])) as Vector3Tuple,
// max: a.max.map((a, index) => Math.max(a, b.max[index])) as Vector3Tuple,
min: {
x: Math.min(a.min.x, b.min.x),
y: Math.min(a.min.y, b.min.y),
z: Math.min(a.min.z, b.min.z),
},
max: {
x: Math.max(a.max.x, b.max.x),
y: Math.max(a.max.y, b.max.y),
z: Math.max(a.max.z, b.max.z),
},
} satisfies BoundingBox;
}