Skip to content

bloqade.geometry.dialects.grid.positions

← Module overview

functionpositionssource

bloqade.geometry.dialects.grid.positions

Signature
def positions(grid: Grid[typing.Any, typing.Any]) -> ilist.IList[tuple[float, float], typing.Any]

Get the positions of a grid as a list of (x, y) tuples.

Parameters

NameTypeDescription
gridGrid[typing.Any, typing.Any]a grid object

Returns

ilist.IList[tuple[float, float], typing.Any]a list of (x, y) tuples representing the positions of the grid points

source