Fade2.5D Documentation pages v2.12
Delaunay Features
GEOM_FADE25D::Segment2 Class Reference


#include <Segment2.h>

Public Member Functions

 Segment2 ()
 Segment2 (const Point2 &src_, const Point2 &trg_)
 Create a Segment2. More...
double getSqLen25D () const
double getSqLen2D () const
Point2 getSrc () const
Point2 getTrg () const
bool operator< (const Segment2 &other) const
bool operator== (const Segment2 &other) const
void swapSrcTrg ()

Protected Attributes

Point2 src
Point2 trg


std::ostream & operator<< (std::ostream &stream, Segment2 seg)

Constructor & Destructor Documentation

◆ Segment2() [1/2]

GEOM_FADE25D::Segment2::Segment2 ( const Point2 src_,
const Point2 trg_ 
src_First endpoint (source)
trg_Second endpoint (target)

◆ Segment2() [2/2]

GEOM_FADE25D::Segment2::Segment2 ( )

Create a Segment2 Default constructor

Member Function Documentation

◆ getSqLen25D()

double GEOM_FADE25D::Segment2::getSqLen25D ( ) const

Get the squared length (2.5D version)

◆ getSqLen2D()

double GEOM_FADE25D::Segment2::getSqLen2D ( ) const

Get the squared length

◆ getSrc()

Point2 GEOM_FADE25D::Segment2::getSrc ( ) const

Get the source point

the source point

◆ getTrg()

Point2 GEOM_FADE25D::Segment2::getTrg ( ) const

Get the target point

the target point

◆ operator<()

bool GEOM_FADE25D::Segment2::operator< ( const Segment2 other) const

operator<() Used to compare segments lexicographically

◆ operator==()

bool GEOM_FADE25D::Segment2::operator== ( const Segment2 other) const


Undirected equality operator

◆ swapSrcTrg()

void GEOM_FADE25D::Segment2::swapSrcTrg ( )

Internally swaps the source and target point

The documentation for this class was generated from the following file: