get_num_hex_in_grid#
- sionna.sys.get_num_hex_in_grid(num_rings: int) int[source]#
Computes the number of hexagons in a spiral hexagonal grid with a given number of rings \(N\). It equals \(1+3N(N+1)\).
- Parameters:
num_rings (int) – Number of rings of the hexagonal spiral grid
- Outputs:
num_hexagons – Number of hexagons in the spiral hexagonal grid
Examples
from sionna.sys import get_num_hex_in_grid print(get_num_hex_in_grid(1)) # 7 print(get_num_hex_in_grid(2)) # 19