1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-24 04:34:13 +02:00
This commit is contained in:
syuilo
2026-04-17 20:42:02 +09:00
parent 623b4f087f
commit 669286c1d8
4 changed files with 43 additions and 12 deletions

View File

@@ -393,3 +393,7 @@ export function getMeshesBoundingBox(meshes: BABYLON.Mesh[]): BABYLON.BoundingBo
return new BABYLON.BoundingBox(min.subtract(new BABYLON.Vector3(10000, 10000, 10000)), max.subtract(new BABYLON.Vector3(10000, 10000, 10000)));
}
export function randomRange(min: number, max: number) {
return Math.random() * (max - min) + min;
}