(&self)
| 15 | |
| 16 | impl 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(); |
no outgoing calls
no test coverage detected