Function autoware_utils_geometry::rotate_polygon(const Polygon2d&, const double)

Function Documentation

Polygon2d autoware_utils_geometry::rotate_polygon(const Polygon2d &polygon, const double angle)

rotate a polygon by some angle around the origin

Parameters:
  • polygon[in] input polygon

  • angle[in] angle of rotation [rad]

Returns:

rotated polygon