Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
metro.cpp File Reference

Go to the source code of this file.

Functions

sufficient_stats operator+ (sufficient_stats const &a, sufficient_stats const &b)
 
sufficient_stats operator- (sufficient_stats const &a, sufficient_stats const &b)
 
std::ostream & operator<< (std::ostream &out_file, const sufficient_stats &s)
 
Point map_point (Point p, Rect src, Point topleft, Point bottomright)
 returns a point which is portionally between topleft and bottomright in the same way that p was in src.
 
void parse_data (vector< vector< Point > > &paths, string location_file_name, string path_file_name)
 
void extremePoints (vector< Point > const &pts, Point const &dir, Point &min, Point &max)
 
template<class T >
reg_line line_best_fit (T b, T e)
 
int main (int argc, char **argv)
 

Variables

vector< vector< Point > > paths
 

Function Documentation

◆ extremePoints()

void extremePoints ( vector< Point > const &  pts,
Point const &  dir,
Point min,
Point max 
)

Definition at line 363 of file metro.cpp.

References Geom::dot(), Geom::max(), and Geom::min().

◆ line_best_fit()

template<class T >
reg_line line_best_fit ( b,
e 
)

Definition at line 652 of file metro.cpp.

References Geom::dot(), Geom::rot90(), and Geom::unit_vector().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 906 of file metro.cpp.

References init().

◆ map_point()

Point map_point ( Point  p,
Rect  src,
Point  topleft,
Point  bottomright 
)

returns a point which is portionally between topleft and bottomright in the same way that p was in src.

Definition at line 283 of file metro.cpp.

References Geom::GenericRect< C >::min().

Referenced by parse_data().

◆ operator+()

sufficient_stats operator+ ( sufficient_stats const &  a,
sufficient_stats const &  b 
)

Definition at line 107 of file metro.cpp.

◆ operator-()

sufficient_stats operator- ( sufficient_stats const &  a,
sufficient_stats const &  b 
)

Definition at line 119 of file metro.cpp.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  out_file,
const sufficient_stats &  s 
)
inline

Definition at line 130 of file metro.cpp.

◆ parse_data()

void parse_data ( vector< vector< Point > > &  paths,
string  location_file_name,
string  path_file_name 
)

Definition at line 292 of file metro.cpp.

References bounds, map_point(), and paths.

Variable Documentation

◆ paths