mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-22 05:15:32 +01:00
fix: some linting for new proto 2
This commit is contained in:
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;
|
||||
}
|
||||
Reference in new issue
Block a user