mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-22 05:15:32 +01:00
feat: migrated tankopedia pages
This commit is contained in:
1 parent
135dd85a82
commit
9ae8b0ac49
30 files changed
+77
-19
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { BoundingBox } from '@blitzkit/core/src/blitzkit/modelDefinitions';
|
||||
import { Vector3Tuple } from 'three';
|
||||
|
||||
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,
|
||||
} satisfies BoundingBox;
|
||||
}
|
||||
Reference in new issue
Block a user