BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
bst::geo::Path Class Reference

A path of geographical points. More...

#include <geo.hpp>

Collaboration diagram for bst::geo::Path:

Public Member Functions

 Path ()
 
 Path (std::vector< Point > points)
 
void addPoint (Point point)
 
double distance () const
 
bool getFirstPoint (Point &point) const
 
bool getLastPoint (Point &point) const
 
int getNumPoints () const
 
std::vector< Pointpoints () const
 

Private Attributes

std::vector< Pointpoints_
 

Detailed Description

A path of geographical points.

Constructor & Destructor Documentation

◆ Path() [1/2]

bst::geo::Path::Path ( )

◆ Path() [2/2]

bst::geo::Path::Path ( std::vector< Point points)

Member Function Documentation

◆ addPoint()

void bst::geo::Path::addPoint ( Point  point)
inline

References points_.

◆ getNumPoints()

int bst::geo::Path::getNumPoints ( ) const
inline

References points_.

◆ distance()

double bst::geo::Path::distance ( ) const

References bst::geo::distance(), and points_.

Here is the call graph for this function:

◆ points()

std::vector<Point> bst::geo::Path::points ( ) const
inline

References points_.

◆ getLastPoint()

bool bst::geo::Path::getLastPoint ( Point point) const

References points_.

◆ getFirstPoint()

bool bst::geo::Path::getFirstPoint ( Point point) const

References points_.

Member Data Documentation

◆ points_

std::vector<Point> bst::geo::Path::points_
private