Class point2d_t
Defined in File point2d.hpp
Class Documentation
-
class point2d_t
Public Types
Typedef for shared pointer to point2d_t.
Public Functions
-
inline point2d_t()
Constructors.
-
inline point2d_t(const double u_, const double v_)
Constructor with parameters.
- Parameters:
u_ – Parameter
u_.v_ – Parameter
v_.
-
inline point2d_t(const array2D_t &pointArray_)
Constructor from array2D_t.
- Parameters:
pointArray_ – Parameter
pointArray_.
-
inline point2d_t(const Eigen::Vector2d &pointEigen_)
Constructor from Eigen.
- Parameters:
pointEigen_ – Parameter
pointEigen_.
-
inline auto operator->()
Pointer-like access to this point.
-
inline auto operator->() const
Pointer-like access to this point (const).
-
inline bool operator==(const point2d_t &other_) const
Defines the == operator for point2d_t.
- Parameters:
other_ – Parameter
other_. Compares two point2d_t objects for equality based on their coordinates.- Returns:
true if both points have the same coordinates, false otherwise.
-
inline void print(std::string prefix_) const
Print function
- Parameters:
prefix_ – Parameter
prefix_.
-
inline array2D_t to_2d_array() const
Converts the point to a 2D array representation.
- Returns:
Returned value.
-
inline Eigen::Vector2d to_eigen() const
Get the eigen coordinates object.
- Returns:
Returned value.
-
inline operator Eigen::Vector2d() const
Convert from point2d_t to Eigen::Vector2d.
- Returns:
Returned vector
-
inline double operator[](const int index_) const
Overloaded operator to access the coordinates of the point.
- Parameters:
index_ – Parameter
index_.- Throws:
std::out_of_range – if the index is not 0 or 1
- Returns:
coordinate value
-
inline double at(const int index_) const
To access the coordinates of the point.
- Parameters:
index_ – Parameter
index_. 1st correspoints to u, 2nd to v.- Returns:
Returned value.