pyrobosim.utils.polygon.add_coords
- pyrobosim.utils.polygon.add_coords(coords: Sequence[Sequence[float]], offset: tuple[float, float]) list[Sequence[float]]
Adds an offset (x,y) vector to a Shapely compatible list of coordinate tuples.
- Parameters:
coords – A list of 2D coordinates representing the polygon.
offset – The (x,y) offset vector.
- Returns:
The offset list of 2D coordinates representing the new polygon.