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

Method center

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

Source from the content-addressed store, hash-verified

15
16impl MeshData {
17 pub fn center(&self) -> [f32; 3] {
18 [
19 0.5 * (self.aabb_min[0] + self.aabb_max[0]),
20 0.5 * (self.aabb_min[1] + self.aabb_max[1]),
21 0.5 * (self.aabb_min[2] + self.aabb_max[2]),
22 ]
23 }
24
25 pub fn radius(&self) -> f32 {
26 let c = self.center();

Callers 3

bake_asyncFunction · 0.80
radiusMethod · 0.80
bloom_init_windowFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected