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

Method has_neighbor

splashsurf_lib/src/uniform_grid.rs:1020–1022  ·  view source on GitHub ↗
(&self, direction: DirectedAxis)

Source from the content-addressed store, hash-verified

1018 /// Returns if the origin point has a valid neighbor following the specified directed axis
1019 #[inline(always)]
1020 pub fn has_neighbor(&self, direction: DirectedAxis) -> bool {
1021 self.neighbors.get(&direction).is_some()
1022 }
1023
1024 /// Get a specific neighbor in the given direction from the origin point of the neighborhood
1025 #[inline(always)]

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected