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

Method get_neighbor

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

Source from the content-addressed store, hash-verified

1024 /// Get a specific neighbor in the given direction from the origin point of the neighborhood
1025 #[inline(always)]
1026 pub fn get_neighbor(&self, direction: DirectedAxis) -> Option<&PointIndex<I>> {
1027 self.neighbors.get(&direction).as_ref()
1028 }
1029
1030 /// Get the edge to a specific neighbor in the given direction from the origin point of the neighborhood
1031 #[inline(always)]

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected