MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / radius

Method radius

tools/imposter-baker/src/gltf_load.rs:25–31  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

23 }
24
25 pub fn radius(&self) -> f32 {
26 let c = self.center();
27 let dx = self.aabb_max[0] - c[0];
28 let dy = self.aabb_max[1] - c[1];
29 let dz = self.aabb_max[2] - c[2];
30 (dx * dx + dy * dy + dz * dz).sqrt()
31 }
32}
33
34pub fn load_glb<P: AsRef<Path>>(path: P) -> Result<MeshData, String> {

Callers 1

bake_asyncFunction · 0.80

Calls 1

centerMethod · 0.80

Tested by

no test coverage detected