TwiceAsNice
2019-02-18
|
A LbtStarCatSrt object helps to sort a LBTO catalogue by distance to a reference star. More...
#include <LicsStarcat.h>
Public Member Functions | |
LbtStarCatSrt (const Lics::LicsStar &cntr) | |
Define the reference star for the LBTO star list. More... | |
bool | operator() (const Lics::LicsStar &i, const Lics::LicsStar &j) |
Compare two stars according to their distance to the reference direction. More... | |
LbtStarCatSrt (const Lics::LicsStar &cntr) | |
bool | operator() (const Lics::LicsStar &i, const Lics::LicsStar &j) |
Private Attributes | |
Lics::LicsStar | refstar |
The star that defines distance zero. More... | |
A LbtStarCatSrt object helps to sort a LBTO catalogue by distance to a reference star.
Lics::LbtStarCatSrt::LbtStarCatSrt | ( | const Lics::LicsStar & | cntr | ) |
Define the reference star for the LBTO star list.
cntr | The star that will be placed at position 0 at the top of the list. |
Lics::LbtStarCatSrt::LbtStarCatSrt | ( | const Lics::LicsStar & | cntr | ) |
bool Lics::LbtStarCatSrt::operator() | ( | const Lics::LicsStar & | i, |
const Lics::LicsStar & | j | ||
) |
Compare two stars according to their distance to the reference direction.
i | First star of the pair. |
j | Second star of the pair. |
bool Lics::LbtStarCatSrt::operator() | ( | const Lics::LicsStar & | i, |
const Lics::LicsStar & | j | ||
) |
|
private |
The star that defines distance zero.
The reference pointing direction.