TwiceAsNice  2019-02-18
Public Member Functions | Private Attributes | List of all members
Lics::LbtStarCatSrt Class Reference

A LbtStarCatSrt object helps to sort a LBTO catalogue by distance to a reference star. More...

#include <LicsStarcat.h>

Collaboration diagram for Lics::LbtStarCatSrt:
Collaboration graph

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...
 

Detailed Description

A LbtStarCatSrt object helps to sort a LBTO catalogue by distance to a reference star.


Since
2017-01-20
Author
R. J. mathar

Constructor & Destructor Documentation

◆ LbtStarCatSrt() [1/2]

Lics::LbtStarCatSrt::LbtStarCatSrt ( const Lics::LicsStar cntr)

Define the reference star for the LBTO star list.


Parameters
cntrThe star that will be placed at position 0 at the top of the list.
Since
2017-01-18

◆ LbtStarCatSrt() [2/2]

Lics::LbtStarCatSrt::LbtStarCatSrt ( const Lics::LicsStar cntr)

Member Function Documentation

◆ operator()() [1/2]

bool Lics::LbtStarCatSrt::operator() ( const Lics::LicsStar i,
const Lics::LicsStar j 
)

Compare two stars according to their distance to the reference direction.


Parameters
iFirst star of the pair.
jSecond star of the pair.
Returns
True if the first star is closer to the reference star.
Since
2017-01-18

◆ operator()() [2/2]

bool Lics::LbtStarCatSrt::operator() ( const Lics::LicsStar i,
const Lics::LicsStar j 
)

Member Data Documentation

◆ refstar

Lics::LicsStar Lics::LbtStarCatSrt::refstar
private

The star that defines distance zero.

The reference pointing direction.


The documentation for this class was generated from the following files: