G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
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.
 
 gsVSegment (int x, int bottomY, int upperY, bool l)
 Default empty constructor.
 
bool isClosing (const gsVSegment &other) const
 Default destructor.
 
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()

template<class T >
gsVSegment ( int  x,
int  bottomY,
int  upperY,
bool  l 
)
inline

Default empty constructor.

Constructor with a line segment.

Member Function Documentation

◆ cannotDeleteOverlap()

template<class T >
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;

◆ isClosing()

template<class T >
bool isClosing ( const gsVSegment< T > &  other) const

Default destructor.

Test the equality with the segment other.

Parameters
other

◆ isConnected()

template<class T >
bool isConnected ( const gsVSegment< T > &  other) const

Test conection to the segment other.

Parameters
other