-
Notifications
You must be signed in to change notification settings - Fork 0
/
Projection.h
46 lines (41 loc) · 1.08 KB
/
Projection.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <fstream>
#include <string>
#include <iostream>
#include <sstream>
#include <vector>
#include <stdlib.h>
#include <cmath>
#include "Airport.h"
#include "Route.h"
//#include "bfs.h"
//#include "Dijkstra.h"
//#include "Centrality.h"
#include "cs225/PNG.h"
#include "cs225/HSLAPixel.h"
using namespace std;
using namespace cs225;
class Projection {
public:
Projection();
Projection(Airport a1, Airport a2);
~Projection();
double xCal(double lo);
double yCal(double la);
double lonErrorFix(double x);
double pixelDist(double x1, double y1, double x2, double y2);
void drawPoint(Airport airport, double centrality);
void drawLine(Airport air1, Airport air2);
void drawLinePacific(Airport air1, Airport air2);
void drawLineAtlantic(Airport air1, Airport air2);
void writeToMap();
// void outputMap();
private:
Airport origin;
Airport destination;
PNG map;
int mapWidth;
int mapHeight;
int originx;
int originy;
};