101 return (normal_ == line.normal_
102 && distance_ == line.distance_);
114 return !(*
this == line);
121 double distance_ = 0.0;
Object representing an infinite line in 2 dimensional space.
Definition: line_2d.hpp:16
Line2D() noexcept=default
Create default line.
double Distance() const noexcept
Gets the distance of the line from the origin.
Definition: line_2d.hpp:78
Point2D< double > Normal() const noexcept
Gets the normal vector of the line.
Definition: line_2d.hpp:57
void SetDistance(double distance) noexcept
Sets the distance of the line from the origin.
Definition: line_2d.hpp:88
bool operator==(const Line2D &line) const noexcept
Compares to an other line.
Definition: line_2d.hpp:99
bool operator!=(const Line2D &line) const noexcept
Compares to an other line.
Definition: line_2d.hpp:112
Line2D(Point2D< double > p1, Point2D< double > p2) noexcept
Create a line object.
Definition: line_2d.hpp:44
void SetNormal(Point2D< double > normal)
Sets the normal vector of the line.
Definition: line_2d.hpp:67
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:88
T Y() const noexcept
Gets the y-component of the point.
Definition: point_2d.hpp:108
void SetLength(T length) noexcept
Sets the length of the vector represented by this point object.
Definition: point_2d.hpp:139
Root namespace for the Image Manager interface.
Definition: c_barcode.h:15