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

Method join_with_point

splashsurf_lib/src/aabb.rs:251–254  ·  view source on GitHub ↗

Enlarges this AABB to the smallest AABB enclosing both itself and another point

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

Source from the content-addressed store, hash-verified

249
250 /// Enlarges this AABB to the smallest AABB enclosing both itself and another point
251 pub fn join_with_point(&mut self, point: &SVector<R, D>) {
252 self.min = self.min.inf(point);
253 self.max = self.max.sup(point);
254 }
255
256 /// Grows this AABB uniformly in all directions by the given scalar margin (i.e. adding the margin to min/max extents)
257 pub fn grow_uniformly(&mut self, margin: R) {

Callers 2

par_from_pointsMethod · 0.80
from_pointsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected