bloqade.geometry.dialects.grid.get
← Module overview
function
source
functionget¶source
bloqade.geometry.dialects.grid.get
def get(grid: Grid, idx: tuple[int, int]) -> tuple[float, float]Get the coordinate (x, y) of a grid at the given index.
Returns: tuple[float, float]: a tuple of (x, y) positions tuple[None, None]: if the grid has no initial x or y position
Parameters
| Name | Type | Description |
|---|---|---|
grid | Grid | a grid object |
idx | tuple[int, int] | a tuple of (x, y) indices |
Returns
tuple[float, float]