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

Method contains_point

splashsurf_lib/src/aabb.rs:220–222  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected