VICUS Library
Documentation of Vicus library
Loading...
Searching...
No Matches
VICUS::NetworkLine Class Reference

geometric resolution in m, points closer than that are assumed equal More...

#include <VICUS_NetworkLine.h>

Public Member Functions

 NetworkLine (const IBKMK::Vector3D &p1, const IBKMK::Vector3D &p2)
 
 NetworkLine (const NetworkEdge &e)
 
void intersection (const NetworkLine &line, IBKMK::Vector3D &pInter) const
 
double distanceToPoint (const IBKMK::Vector3D &point) const
 
bool containsPoint (const IBKMK::Vector3D &point) const
 
double length () const
 

Static Public Member Functions

static double distanceBetweenPoints (const IBKMK::Vector3D &point1, const IBKMK::Vector3D &point2)
 
static bool pointsMatch (const IBK::point2D< double > &point1, const IBK::point2D< double > &point2)
 

Public Attributes

IBKMK::Vector3D m_a
 
IBKMK::Vector3D m_b
 

Detailed Description

geometric resolution in m, points closer than that are assumed equal

Constructor & Destructor Documentation

◆ NetworkLine() [1/2]

VICUS::NetworkLine::NetworkLine ( const IBKMK::Vector3D &  p1,
const IBKMK::Vector3D &  p2 
)
inline

◆ NetworkLine() [2/2]

VICUS::NetworkLine::NetworkLine ( const NetworkEdge e)
inline

Member Function Documentation

◆ containsPoint()

bool VICUS::NetworkLine::containsPoint ( const IBKMK::Vector3D &  point) const

determines wether the given point is on the line, between the determining points but does not match any of the determining points

◆ distanceBetweenPoints()

double VICUS::NetworkLine::distanceBetweenPoints ( const IBKMK::Vector3D &  point1,
const IBKMK::Vector3D &  point2 
)
static

retruns distance between two given points

◆ distanceToPoint()

double VICUS::NetworkLine::distanceToPoint ( const IBKMK::Vector3D &  point) const

returns distance between point and line, if point is not contained by line, the distance to the closest line endpoint is returned

◆ intersection()

void VICUS::NetworkLine::intersection ( const NetworkLine line,
IBKMK::Vector3D &  pInter 
) const

return intersection point between two lines

◆ length()

double VICUS::NetworkLine::length ( ) const

length of line

◆ pointsMatch()

static bool VICUS::NetworkLine::pointsMatch ( const IBK::point2D< double > &  point1,
const IBK::point2D< double > &  point2 
)
static

checks wether the distance between two points is below the threshold

Member Data Documentation

◆ m_a

IBKMK::Vector3D VICUS::NetworkLine::m_a

Offset vector of line

◆ m_b

IBKMK::Vector3D VICUS::NetworkLine::m_b

Direction vector of line


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