LOST
0.0.1
LOST: Open-source Star Tracker
|
A star from the Bright Star Catalog. More...
#include <star-utils.hpp>
Public Member Functions | |
CatalogStar ()=default | |
CatalogStar (decimal raj2000, decimal dej2000, int magnitude, int name) | |
Create a CatalogStar using its celestial/spherical coordinates. More... | |
CatalogStar (Vec3 spatial, int magnitude, int name) | |
Public Attributes | |
Vec3 | spatial |
The point on the unit sphere where the star lies. More... | |
int | magnitude |
The magnitude of the star, with the decimal point shifted two places right. More... | |
int | name |
A unique number which unambiguously identifies the catalog star. More... | |
A star from the Bright Star Catalog.
Definition at line 12 of file star-utils.hpp.
|
default |
Create a CatalogStar using its celestial/spherical coordinates.
raj2000,dej2000 | The right ascension and declination of the star in the year 2000 |
magnitude | See ::magnitude |
name | See ::name |
Definition at line 22 of file star-utils.hpp.
|
inline |
Definition at line 25 of file star-utils.hpp.
int lost::CatalogStar::magnitude |
The magnitude of the star, with the decimal point shifted two places right.
I.e., multiply this by 10-2 to get the magnitude.
Definition at line 37 of file star-utils.hpp.
int lost::CatalogStar::name |
A unique number which unambiguously identifies the catalog star.
The catalog is an array, so in algorithms we usually refer to catalog stars by their index in the catalog. However, if the catalog is filtered (say, to remove stars that are too dim or too close to each other), the indexes change, which makes everything really hard to debug because indexes change based on how the catalog was filtered. That's what names are for: They're fixed and don't change.
Definition at line 42 of file star-utils.hpp.
Vec3 lost::CatalogStar::spatial |
The point on the unit sphere where the star lies.
The earth is at the center of the sphere. A star with right ascension and declination both equal to zero will lie at (1,0,0).
Definition at line 32 of file star-utils.hpp.