siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
siderust::spherical Namespace Reference

Namespaces

namespace  direction
 
namespace  position
 

Classes

struct  Direction
 A direction on the celestial sphere, compile-time tagged by frame. More...
 
struct  Position
 A spherical position (direction + distance), compile-time tagged. More...
 

Functions

template<typename F , std::enable_if_t< frames::has_ra_dec_v< F >, int > = 0>
std::ostream & operator<< (std::ostream &os, const Direction< F > &dir)
 Stream operator for Direction with RA/Dec frames.
 
template<typename C , typename F , typename U , std::enable_if_t< frames::has_ra_dec_v< F >, int > = 0>
std::ostream & operator<< (std::ostream &os, const Position< C, F, U > &pos)
 Stream operator for spherical::Position (RA/Dec frames).
 

Function Documentation

◆ operator<<() [1/2]

template<typename F , std::enable_if_t< frames::has_ra_dec_v< F >, int > = 0>
std::ostream & siderust::spherical::operator<< ( std::ostream &  os,
const Direction< F > &  dir 
)
inline

Stream operator for Direction with RA/Dec frames.

Stream operator for Direction with Lon/Lat frames.

Stream operator for Direction with Az/Alt frame.

Definition at line 428 of file spherical.hpp.

References siderust::spherical::Direction< F >::dec(), and siderust::spherical::Direction< F >::ra().

◆ operator<<() [2/2]

template<typename C , typename F , typename U , std::enable_if_t< frames::has_ra_dec_v< F >, int > = 0>
std::ostream & siderust::spherical::operator<< ( std::ostream &  os,
const Position< C, F, U > &  pos 
)
inline

Stream operator for spherical::Position (RA/Dec frames).

Stream operator for spherical::Position (lon/lat frames).

Stream operator for spherical::Position (Horizontal frame).

Definition at line 455 of file spherical.hpp.

References siderust::spherical::Position< C, F, U >::dec(), siderust::spherical::Position< C, F, U >::distance(), and siderust::spherical::Position< C, F, U >::ra().