Class Polygon2d

Inheritance Relationships

Derived Type

Class Documentation

class Polygon2d

Subclassed by autoware_utils::alt::ConvexPolygon2d

Public Functions

inline const PointList2d &outer() const noexcept
inline PointList2d &outer() noexcept
inline const std::vector<PointList2d> &inners() const noexcept
inline std::vector<PointList2d> &inners() noexcept
autoware_utils::Polygon2d to_boost() const

Public Static Functions

static std::optional<Polygon2d> create(const PointList2d &outer, const std::vector<PointList2d> &inners) noexcept
static std::optional<Polygon2d> create(PointList2d &&outer, std::vector<PointList2d> &&inners) noexcept
static std::optional<Polygon2d> create(const autoware_utils::Polygon2d &polygon) noexcept

Protected Functions

inline Polygon2d(const PointList2d &outer, const std::vector<PointList2d> &inners)
inline Polygon2d(PointList2d &&outer, std::vector<PointList2d> &&inners)

Protected Attributes

PointList2d outer_
std::vector<PointList2d> inners_