Class Polygon

Class Documentation

class Polygon

Public Functions

inline Polygon()
inline Polygon(const Polygon &poly)
inline explicit Polygon(const geometry_msgs::msg::Polygon &polygonMsg)
inline ~Polygon()
inline int size() const
inline bool empty() const
inline void clear()
inline std::string get_name() const
inline void set_name(std::string new_name)
inline std::vector<Edge> get_edges() const
inline Edge get_edge(int e) const
inline void add_edge(Edge edge)
inline bool contains(const Point2D &p) const
inline Point2D centroid() const
inline bool is_closed() const
inline void close()
inline void add_point(const Point2D &p)
inline std::vector<Point2D> get_points() const
inline operator geometry_msgs::msg::Polygon()
inline Polygon &operator=(const Polygon &poly)
inline Polygon &operator=(const geometry_msgs::msg::Polygon &polygonMsg)
inline bool operator==(const Polygon &poly) const
inline bool operator!=(const Polygon &poly) const

Friends

inline friend std::ostream &operator<<(std::ostream &out, const Polygon &poly)