G+Smo
24.08.0
Geometry + Simulation Modules
|
Class for representing a vertical line segment in 2D. Helper for the class gsAAPolyline.
Public Member Functions | |
bool | cannotDeleteOverlap (gsVSegment< T > &other) |
otherwise gets rid of their overlap and returns false. More... | |
gsVSegment (int x, int bottomY, int upperY, bool l) | |
Default empty constructor. More... | |
bool | isClosing (const gsVSegment &other) const |
Default destructor. More... | |
bool | isConnected (const gsVSegment &other) const |
Protected Attributes | |
bool | left |
Whether the segment is on the left hand-side of the enclosed domain. | |
T | m_x |
The x-coordinate. | |
std::pair< T, T > | m_y |
Lower and upper y–coordinates. | |
|
inline |
Default empty constructor.
Constructor with a line segment.
bool cannotDeleteOverlap | ( | gsVSegment< T > & | other | ) |
otherwise gets rid of their overlap and returns false.
Returns true if the segments (i.e., this and
other) | are disjoint; |
bool isClosing | ( | const gsVSegment< T > & | other | ) | const |
Default destructor.
Test the equality with the segment other.
other |
bool isConnected | ( | const gsVSegment< T > & | other | ) | const |
Test conection to the segment other.
other |