diff options
Diffstat (limited to 'src/line-geometry.cpp')
| -rw-r--r-- | src/line-geometry.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/line-geometry.cpp b/src/line-geometry.cpp index 6e0f82d45..822b24d59 100644 --- a/src/line-geometry.cpp +++ b/src/line-geometry.cpp @@ -38,22 +38,10 @@ Line::Line(Geom::Point const &start, Geom::Point const &vec, bool is_endpoint): d0 = Geom::dot(normal, pt); } -Line::Line(Line const &line): - pt(line.pt), - v_dir(line.v_dir), - normal(line.normal), - d0(line.d0) -{ -} +Line::Line(Line const &line) += default; -Line &Line::operator=(Line const &line) { - pt = line.pt; - v_dir = line.v_dir; - normal = line.normal; - d0 = line.d0; - - return *this; -} +Line &Line::operator=(Line const &line) = default; boost::optional<Geom::Point> Line::intersect(Line const &line) { Geom::Coord denom = Geom::dot(v_dir, line.normal); |
