Translates the AABB to center it at the coordinate origin (moves the centroid to the coordinate origin)
(&mut self)
| 229 | |
| 230 | /// Translates the AABB to center it at the coordinate origin (moves the centroid to the coordinate origin) |
| 231 | pub fn center_at_origin(&mut self) { |
| 232 | self.translate(&(self.centroid() * R::one().neg())); |
| 233 | } |
| 234 | |
| 235 | /// Multiplies a uniform, local scaling to the AABB (i.e. multiplying its extents as if it was centered at the origin) |
| 236 | pub fn scale_uniformly(&mut self, scaling: R) { |