hex_hop Function

public pure function hex_hop(H, i) result(Ni)

Return the nearest neighbor of H, by hopping in the i-th direction. You can feed any i ∈ ℤ, but you'd get only 6 inequivalent neighbors

Arguments

Type IntentOptional Attributes Name
type(hex), intent(in) :: H
integer, intent(in) :: i

Return Value type(hex)


Calls

proc~~hex_hop~~CallsGraph proc~hex_hop hex_neighbors::hex_hop proc~hex_direction hex_neighbors::hex_direction proc~hex_hop->proc~hex_direction

Called by

proc~~hex_hop~~CalledByGraph proc~hex_hop hex_neighbors::hex_hop proc~hex_nearest hex_neighbors::hex_nearest proc~hex_nearest->proc~hex_hop