mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
9 lines
257 B
TypeScript
9 lines
257 B
TypeScript
import { Vector3Tuple } from 'three';
|
|
import { BoundingBox } from './modelDefinitions';
|
|
|
|
export function normalizeBoundingBox(boundingBox: BoundingBox) {
|
|
return boundingBox.max.map(
|
|
(max, index) => max - boundingBox.min[index],
|
|
) as Vector3Tuple;
|
|
}
|