CrowdSenSim
1.0
|
#include "../Headers/MapCity.h"
#include <fstream>
#include <iostream>
#include <string>
#include <cstdlib>
#include <sstream>
#include <vector>
#include <cmath>
#include <stdlib.h>
#include <map>
#include <list>
#include <algorithm>
#include <iomanip>
#include "../Headers/Event.h"
#include "../Headers/ReadValues.h"
Data Structures | |
struct | LocationA |
Macros | |
#define | pi 3.14159265358979323846 |
#define | R 6371 |
#define | TO_RAD (3.1415926536 / 180) |
Functions | |
double | dist (double th1, double ph1, double th2, double ph2) |
void | creatingMapAssociationGraphPoints (string mapPointsCentreCity, string nameCity) |
Variables | |
list< LocationA > | locationsLA |
list< LocationA >::iterator | it_locationsLA |
#define pi 3.14159265358979323846 |
#define R 6371 |
#define TO_RAD (3.1415926536 / 180) |
void creatingMapAssociationGraphPoints | ( | string | mapPointsCentreCity, |
string | nameCity | ||
) |
It creates two different files:
double dist | ( | double | th1, |
double | ph1, | ||
double | th2, | ||
double | ph2 | ||
) |
It computes the distance between two general points in the map Inputs: Longitude and latitude of two points Outputs: double value of the distance
Computes the distance in meters between two points in the map.
list<LocationA>::iterator it_locationsLA |
list<LocationA> locationsLA |