Polyline Utilities¶
- py123d.geometry.utils.polyline_utils.get_linestring_yaws(linestring)[source]¶
Compute the heading of each coordinate to its successor coordinate. The last coordinate will have the same heading as the second last coordinate.
- py123d.geometry.utils.polyline_utils.get_points_2d_yaws(points_array)[source]¶
Compute the heading of each 2D point to its successor point. The last point will have the same heading as the second last point.
- py123d.geometry.utils.polyline_utils.get_path_progress_2d(points_array)[source]¶
Compute the cumulative path progress along a series of 2D points.
- py123d.geometry.utils.polyline_utils.get_path_progress_3d(points_array)[source]¶
Compute the cumulative path progress along a series of 3D points.
- py123d.geometry.utils.polyline_utils.offset_points_perpendicular(points_array, offset)[source]¶
Offset 2D points or SE2 poses perpendicularly by a given offset.
- Parameters:
- Raises:
ValueError – If the input points_array is not valid.
- Return type:
- Returns:
Array of shape (…, 2) representing the offset points.