Line.hh
Go to the documentation of this file.
Line(Vector_< Value_ > const &point_1, Vector_< Value_ > const &point_2)
Constructor accepting two vectors.
Definition: Line.hh:35
Value_ DistanceToSegment(Vector_< Value_ > const &point) const
Distance of point to line segment spanned between the two vectors.
Definition: Line.hh:89
Vector_< Value_ > Vector() const
Vector between the two points.
Definition: Line.hh:117
double Paramter(Vector_< Value_ > const &point) const
Parameter along the line segment between the two points.
Definition: Line.hh:180
Vector_< Value_ > Projection(Vector_< Value_ > const &point) const
Projection of the point onto the line.
Definition: Line.hh:191
friend auto & operator<<(std::ostream &stream, Line const &line)
Output stream operator.
Definition: Line.hh:201
Vector_< Value_ > Vector_1(Vector_< Value_ > const &point) const
vector between a point and the first point
Definition: Line.hh:148
Vector_< Value_ > const & Point_1() const
Vector of first point.
Definition: Line.hh:50
Value_ Distance_1(Vector_< Value_ > const &point) const
Distance between the point and the first point.
Definition: Line.hh:164
Vector_< Value_ > Vector_2(Vector_< Value_ > const &point) const
vector between a point and the second point
Definition: Line.hh:156
Value_ Distance_2(Vector_< Value_ > const &point) const
Distance between the point and the second point.
Definition: Line.hh:172
Vector_< Value_ > const & Point_2() const
Vector of second point.
Definition: Line.hh:66
Value_Square Mag2() const
Square of the magnitude of the vector.
Definition: Line.hh:125
Value_ DistanceToLine(Vector_< Value_ > const &point) const
Distance of point to the line.
Definition: Line.hh:101