Go to the documentation of this file. 1 #ifndef LINESEGMENT2D_H
2 #define LINESEGMENT2D_H
43 const double &
x0()
const;
47 const double &
y0()
const;
51 const double &
x1()
const;
55 const double &
y1()
const;
80 const double length()
const;
129 os <<
"[[" << o.
x0() <<
", " << o.
y0() <<
"], [" << o.
x1() <<
", " << o.
y1() <<
"] ]";
135 #endif // LINESEGMENT2D_H
const double & x1() const
double closestPointLineSegmentRatio(const Point2D &p) const
const double & x0() const
const Point2D & p0() const
LineSegment2D()
the lines endpoints
double distanceTo(const Point2D &p, double &dx, double &dy) const
friend std::ostream & operator<<(std::ostream &os, const LineSegment2D &o)
const double length() const
std::shared_ptr< LineSegment2D > LineSegment2DPtr
Prototype.
Point2D closestPointTo(const Point2D &p) const
std::shared_ptr< LineSegment2D const > LineSegment2DConstPtr
const double & y1() const
const double & y0() const
const Line2D & line() const
LineSegment2D & set(const double &x0, const double &y0, const double &x1, const double &y1)
bool operator==(const LineSegment2D &o) const
comparison operator
const Point2D & p1() const
double distanceSqrTo(const Point2D &p, double &dx, double &dy) const
tuw_geometry
Author(s): Markus Bader
autogenerated on Sun Feb 26 2023 03:25:40