96 return (normal_ == line.normal_
97 && distance_ == line.distance_);
109 return !(*
this == line);
116 double distance_ = 0.0;
Object representing an infinite line in 2 dimensional space.
Definition: line_2d.hpp:16
Line2D(Point2D< double > normal, double distance) noexcept
Create a line object.
Definition: line_2d.hpp:26
double Distance() const noexcept
Gets the distance of the line from the origin.
Definition: line_2d.hpp:73
Point2D< double > Normal() const noexcept
Gets the normal vector of the line.
Definition: line_2d.hpp:52
void SetDistance(double distance) noexcept
Sets the distance of the line from the origin.
Definition: line_2d.hpp:83
bool operator==(const Line2D &line) const noexcept
Compares to an other line.
Definition: line_2d.hpp:94
bool operator!=(const Line2D &line) const noexcept
Compares to an other line.
Definition: line_2d.hpp:107
Line2D(Point2D< double > p1, Point2D< double > p2) noexcept
Create a line object.
Definition: line_2d.hpp:39
void SetNormal(Point2D< double > normal)
Sets the normal vector of the line.
Definition: line_2d.hpp:62
T X() const noexcept
Gets the x-component of the point.
Definition: point_2d.hpp:86
T Y() const noexcept
Gets the y-component of the point.
Definition: point_2d.hpp:106
void SetLength(T length) noexcept
Sets the length of the vector represented by this point object.
Definition: point_2d.hpp:137
Root namespace for the Image Manager interface.
Definition: c_barcode.h:15