OGS
|
Definition at line 17 of file LineSegment.h.
#include <LineSegment.h>
Public Member Functions | |
LineSegment (GeoLib::Point *const a, GeoLib::Point *const b, bool point_mem_management_by_line_segment=false) | |
LineSegment (LineSegment &&line_segment) | |
LineSegment (LineSegment const &line_segment) | |
~LineSegment () | |
LineSegment & | operator= (LineSegment const &rhs) |
LineSegment & | operator= (LineSegment &&line_segment) |
GeoLib::Point const & | getBeginPoint () const |
GeoLib::Point & | getBeginPoint () |
GeoLib::Point const & | getEndPoint () const |
GeoLib::Point & | getEndPoint () |
Private Attributes | |
GeoLib::Point * | _a = nullptr |
GeoLib::Point * | _b = nullptr |
bool | _point_mem_management_by_line_segment = false |
GeoLib::LineSegment::LineSegment | ( | GeoLib::Point *const | a, |
GeoLib::Point *const | b, | ||
bool | point_mem_management_by_line_segment = false ) |
Constructs a line segment given by its begin and end points.
Definition at line 14 of file LineSegment.cpp.
GeoLib::LineSegment::LineSegment | ( | LineSegment && | line_segment | ) |
Definition at line 30 of file LineSegment.cpp.
GeoLib::LineSegment::LineSegment | ( | LineSegment const & | line_segment | ) |
Definition at line 23 of file LineSegment.cpp.
GeoLib::LineSegment::~LineSegment | ( | ) |
Definition at line 41 of file LineSegment.cpp.
References _a, _b, and _point_mem_management_by_line_segment.
Point & GeoLib::LineSegment::getBeginPoint | ( | ) |
Point const & GeoLib::LineSegment::getBeginPoint | ( | ) | const |
Definition at line 66 of file LineSegment.cpp.
References _a.
Referenced by GeoLib::Polygon::containsSegment(), MeshGeoToolsLib::getCandidateElementsForLineSegmentIntersection(), GeoLib::lineSegmentIntersect(), GeoLib::lineSegmentIntersect2d(), MeshGeoToolsLib::mapLineSegment(), GeoLib::operator<<(), and GeoLib::operator==().
Point & GeoLib::LineSegment::getEndPoint | ( | ) |
Point const & GeoLib::LineSegment::getEndPoint | ( | ) | const |
Definition at line 76 of file LineSegment.cpp.
References _b.
Referenced by GeoLib::Polygon::containsSegment(), MeshGeoToolsLib::getCandidateElementsForLineSegmentIntersection(), GeoLib::lineSegmentIntersect(), GeoLib::lineSegmentIntersect2d(), MeshGeoToolsLib::mapLineSegment(), GeoLib::operator<<(), and GeoLib::operator==().
LineSegment & GeoLib::LineSegment::operator= | ( | LineSegment && | line_segment | ) |
Definition at line 52 of file LineSegment.cpp.
References _a, _b, and _point_mem_management_by_line_segment.
|
default |
|
private |
Definition at line 43 of file LineSegment.h.
Referenced by ~LineSegment(), getBeginPoint(), getBeginPoint(), and operator=().
|
private |
Definition at line 44 of file LineSegment.h.
Referenced by ~LineSegment(), getEndPoint(), getEndPoint(), and operator=().
|
private |
Definition at line 45 of file LineSegment.h.
Referenced by ~LineSegment(), and operator=().