34 normal_.SetLength(1.0);
100 return (normal_ == line.normal_ && distance_ == line.distance_);
111 return !(*
this == line);
116 double distance_ = 0.0;
Line2D() noexcept=default
Create default line.
double Distance() const noexcept
Gets the distance of the line from the origin.
Definition line_2d.hpp:77
Point2D< double > Normal() const noexcept
Gets the normal vector of the line.
Definition line_2d.hpp:56
void SetDistance(double distance) noexcept
Sets the distance of the line from the origin.
Definition line_2d.hpp:87
bool operator==(const Line2D &line) const noexcept
Compares to an other line.
Definition line_2d.hpp:98
bool operator!=(const Line2D &line) const noexcept
Compares to an other line.
Definition line_2d.hpp:109
Line2D(Point2D< double > p1, Point2D< double > p2) noexcept
Create a line object.
Definition line_2d.hpp:43
void SetNormal(Point2D< double > normal)
Sets the normal vector of the line.
Definition line_2d.hpp:66
Multi-purpose 2D vector class.
Definition point_2d.hpp:20
T X() const noexcept
Gets the x-component of the point.
Definition point_2d.hpp:84
T Y() const noexcept
Gets the y-component of the point.
Definition point_2d.hpp:104
void SetLength(T length) noexcept
Sets the length of the vector represented by this point object.
Definition point_2d.hpp:135
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17