pub fn node_ring_cubic(
source: (i32, i32, i32),
radius: i32,
) -> Vec<(i32, i32, i32)>Expand description
Finds the nodes on a ring around a given source point in a Cubic coordinate system. source is of the form
(x, y, z). radius is the particular ring you want to know the nodes of.
For instance radius = 2 for the second ring around the origin:
_______
/ \
_______/ RING2 \_______
/ \ / \
_______/ RING2 \_______/ RING2 \_______
/ \ / \ / \
/ RING2 \_______/ \_______/ RING2 \
\ / \ / \ /
\_______/ \_______/ \_______/
/ \ / x \ / \
/ RING2 \_______/ \_______/ RING2 \
\ / \ y z / \ /
\_______/ \_______/ \_______/
/ \ / \ / \
/ RING2 \_______/ \_______/ RING2 \
\ / \ / \ /
\_______/ RING2 \_______/ RING2 \_______/
\ / \ /
\_______/ RING2 \_______/
\ /
\_______/