Class Point
Defined in File Point.hpp
Inheritance Relationships
Derived Type
public Vector(Class Vector)
Class Documentation
-
class Point
Represents a Point in 2D and contains useful tools to perform operations with them, also to convert them to ROS msgs.
Subclassed by Vector
Public Functions
-
Point()
-
Point(const double &x, const double &y)
-
Point transformed(const Eigen::Affine3d &tf) const
Returns the tranformed Point with an Eigen::Affine3d.
- Parameters:
tf – [in]
-
geometry_msgs::msg::Point gmPoint() const
Converts the point to a geometry_msgs::msg::Point.
-
const double &at(const size_t &ind) const
Returns the coordinate of the position specified by ind.
- Parameters:
ind – [in]
-
size_t size() const
Returns 2.
Public Static Functions
-
static inline double distSq(const Point &p1, const Point &p2 = Point())
Performs the squared Euclidean distance between two Point(s).
- Parameters:
p1 – [in]
p2 – [in]
-
static inline double dist(const Point &p1, const Point &p2 = Point())
Performs the Euclidean distance between two Point(s).
- Parameters:
p1 – [in]
p2 – [in]
-
Point()