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