-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstar.h
More file actions
44 lines (38 loc) · 967 Bytes
/
Copy pathstar.h
File metadata and controls
44 lines (38 loc) · 967 Bytes
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
#ifndef STAR_H
#define STAR_H
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <cmath>
#include <string>
class Star {
long long id;
int numId;
double x, y, z;
// ra: right ascension (sky longitude degrees)
// dec: declination (sky latitude degrees)
// parallax: apparent shift in position (milliarcseconds) - used to estimate distance
double ra, dec, parallax;
public:
Star();
Star(int c);
void setId(long long id);
void setNumId(int numId);
void setX(double x);
void setY(double y);
void setZ(double z);
void setRa(double ra);
void setDec(double dec);
void setParallax(double parallax);
long long getId() const;
int getNumId() const;
double getX() const;
double getY() const;
double getZ() const;
double getRa() const;
double getDec() const;
double getParallax() const;
double computeDistance() const;
};
#endif //STAR_H