15 bool point_mem_management_by_line_segment)
18 _point_mem_management_by_line_segment(
19 point_mem_management_by_line_segment)
24 : _a(new
Point(line_segment.getBeginPoint())),
25 _b(new
Point(line_segment.getEndPoint())),
26 _point_mem_management_by_line_segment(true)
31 : _a(line_segment._a),
33 _point_mem_management_by_line_segment(
34 line_segment._point_mem_management_by_line_segment)
36 line_segment._a =
nullptr;
37 line_segment._b =
nullptr;
38 line_segment._point_mem_management_by_line_segment =
false;
57 line_segment._point_mem_management_by_line_segment;
59 line_segment._a =
nullptr;
60 line_segment._b =
nullptr;
61 line_segment._point_mem_management_by_line_segment =
false;
96 os << seg_pair.first <<
" x " << seg_pair.second;
102 double const tol(std::numeric_limits<double>::epsilon());
bool _point_mem_management_by_line_segment
GeoLib::Point const & getBeginPoint() const
LineSegment & operator=(LineSegment const &rhs)
GeoLib::Point const & getEndPoint() const
LineSegment(GeoLib::Point *const a, GeoLib::Point *const b, bool point_mem_management_by_line_segment=false)
bool operator==(LineSegment const &s0, LineSegment const &s1)
std::ostream & operator<<(std::ostream &os, LineSegment const &s)
double sqrDist(MathLib::Point3d const &p0, MathLib::Point3d const &p1)