G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsVSegment< T > Class Template Reference

Detailed Description

template<class T>
class gismo::gsVSegment< T >

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.
 
m_x
 The x-coordinate.
 
std::pair< T, T > m_y
 Lower and upper y–coordinates.
 

Constructor & Destructor Documentation

gsVSegment ( int  x,
int  bottomY,
int  upperY,
bool  l 
)
inline

Default empty constructor.

Constructor with a line segment.

Member Function Documentation

bool cannotDeleteOverlap ( gsVSegment< T > &  other)

otherwise gets rid of their overlap and returns false.

Returns true if the segments (i.e., this and

Parameters
other)are disjoint;
bool isClosing ( const gsVSegment< T > &  other) const

Default destructor.

Test the equality with the segment other.

Parameters
other
bool isConnected ( const gsVSegment< T > &  other) const

Test conection to the segment other.

Parameters
other