Program Listing for File Point2D.hpp
↰ Return to documentation for file (src/LouLib/Math/Point2D.hpp
)
#ifndef LOULIB_POINT2D_HPP
#define LOULIB_POINT2D_HPP
#include "../Units/Units.hpp"
namespace LouLib {
namespace Math {
class Point2D {
private:
Units::Length x;
Units::Length y;
public:
Point2D(const Units::Length &x, const Units::Length &y);
const Units::Length &getX() const;
void setX(const Units::Length &x);
const Units::Length &getY() const;
void setY(const Units::Length &y);
double findCurvature(Point2D a, Point2D b);
Units::Length distTo(Point2D a);
};
} // LouLib
} // Math
#endif //LOULIB_POINT2D_HPP