MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / translate

Method translate

splashsurf_lib/src/aabb.rs:225–228  ·  view source on GitHub ↗

Translates the AABB by the given vector

(&mut self, vector: &SVector<R, D>)

Source from the content-addressed store, hash-verified

223
224 /// Translates the AABB by the given vector
225 pub fn translate(&mut self, vector: &SVector<R, D>) {
226 self.min += vector;
227 self.max += vector;
228 }
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) {

Callers 4

center_at_originMethod · 0.80
scale_uniformlyMethod · 0.80
enclosing_cubeMethod · 0.80
example_level_setFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected