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

Method contains_aabb

splashsurf_lib/src/aabb.rs:215–217  ·  view source on GitHub ↗

Checks if the given AABB is inside the AABB, the AABB is considered to be half-open to its max coordinate

(&self, other: &Self)

Source from the content-addressed store, hash-verified

213
214 /// Checks if the given AABB is inside the AABB, the AABB is considered to be half-open to its max coordinate
215 pub fn contains_aabb(&self, other: &Self) -> bool {
216 self.contains_point(&other.min) || self.contains_point(&other.max)
217 }
218
219 /// Checks if the given point is inside the AABB, the AABB is considered to be half-open to its max coordinate
220 pub fn contains_point(&self, point: &SVector<R, D>) -> bool {

Callers

nothing calls this directly

Calls 1

contains_pointMethod · 0.45

Tested by

no test coverage detected