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

Typed spherical coordinate templates. More...

#include "../astro_context.hpp"
#include "../centers.hpp"
#include "../constants.hpp"
#include "../frames.hpp"
#include "../time.hpp"
#include "geodetic.hpp"
#include <qtty/qtty.hpp>
#include "detail/stream.hpp"
#include <cmath>
#include <ostream>
#include <type_traits>
Include dependency graph for spherical.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  siderust::spherical::Direction< F >
 A direction on the celestial sphere, compile-time tagged by frame. More...
 
struct  siderust::spherical::Position< C, F, U >
 A spherical position (direction + distance), compile-time tagged. More...
 

Namespaces

namespace  siderust
 
namespace  siderust::cartesian
 
namespace  siderust::spherical
 

Functions

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)
 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 & siderust::spherical::operator<< (std::ostream &os, const Position< C, F, U > &pos)
 Stream operator for spherical::Position (RA/Dec frames).
 

Detailed Description

Typed spherical coordinate templates.

Definition in file spherical.hpp.