mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
10 lines
296 B
TypeScript
10 lines
296 B
TypeScript
import { BoundingBox, Vector3 } from "../protos";
|
|
|
|
export function normalizeBoundingBox(boundingBox: BoundingBox) {
|
|
return {
|
|
x: boundingBox.max!.x - boundingBox.min!.x,
|
|
y: boundingBox.max!.y - boundingBox.min!.y,
|
|
z: boundingBox.max!.z - boundingBox.min!.z,
|
|
} satisfies Vector3;
|
|
}
|