Struct Point2D

Struct Documentation

struct Point2D

Public Functions

inline explicit Point2D(double new_x = 0.0, double new_y = 0.0, Label new_label = BACKGROUND)
inline Point2D(const Point2D &p)
inline explicit Point2D(const geometry_msgs::msg::Point &p)
inline explicit Point2D(const geometry_msgs::msg::Point32 &p)
inline ~Point2D()
inline bool isnan() const
inline double length() const
inline double length_squared() const
inline double angle() const
inline double angle_deg() const
inline double dot(const Point2D &p) const
inline double cross(const Point2D &p) const
inline double angle3(const Point2D &p, const Point2D &q) const
inline Point2D normalized()
inline Point2D reflected(const Point2D &normal) const
inline Point2D perpendicular() const
inline Point2D operator-()
inline Point2D operator+()
inline operator geometry_msgs::msg::Point() const
inline operator geometry_msgs::msg::Point32() const
inline Point2D &operator=(const Point2D &p)
inline Point2D &operator+=(const Point2D &p)
inline Point2D &operator-=(const Point2D &p)
inline Point2D &operator=(const geometry_msgs::msg::Point &pointMsg)
inline Point2D &operator=(const geometry_msgs::msg::Point32 &pointMsg)

Public Members

double x
double y
Label label

Public Static Functions

static inline Point2D from_polar_coords(const double r, const double phi)
static inline Point2D quiet_NaN()

Friends

inline friend Point2D operator+(const Point2D &p1, const Point2D &p2)
inline friend Point2D operator-(const Point2D &p1, const Point2D &p2)
inline friend Point2D operator*(const double f, const Point2D &p)
inline friend Point2D operator*(const Point2D &p, const double f)
inline friend Point2D operator/(const Point2D &p, const double f)
inline friend bool operator==(const Point2D &p1, const Point2D &p2)
inline friend bool operator!=(const Point2D &p1, const Point2D &p2)
inline friend bool operator<(const Point2D &p1, const Point2D &p2)
inline friend bool operator<=(const Point2D &p1, const Point2D &p2)
inline friend bool operator>(const Point2D &p1, const Point2D &p2)
inline friend bool operator>=(const Point2D &p1, const Point2D &p2)
inline friend bool operator!(const Point2D &p1)
inline friend std::ostream &operator<<(std::ostream &out, const Point2D &p)