bloqade.geometry.dialects.grid.positions
← Module overview
function
source
functionpositions¶source
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
| Name | Type | Description |
|---|---|---|
grid | Grid[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