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

Typed cartesian coordinate templates. More...

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

Go to the source code of this file.

Classes

struct  siderust::cartesian::Direction< F >
 A unit-vector direction in Cartesian form, compile-time frame-tagged. More...
 
struct  siderust::cartesian::Displacement< F, U >
 A 3D Cartesian displacement (free vector), compile-time frame-tagged. More...
 
struct  siderust::cartesian::Position< C, F, U >
 A 3D Cartesian position, compile-time tagged by center, frame, unit. More...
 

Namespaces

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

Functions

template<typename F >
std::ostream & siderust::cartesian::operator<< (std::ostream &os, const Direction< F > &dir)
 Stream operator for cartesian::Direction.
 
template<typename F , typename U >
std::ostream & siderust::cartesian::operator<< (std::ostream &os, const Displacement< F, U > &d)
 Stream operator for Displacement.
 
template<typename F , typename U >
Displacement< F, U > siderust::cartesian::operator* (double scalar, const Displacement< F, U > &d)
 Scale a displacement by a scalar (scalar on left).
 
template<typename C , typename F , typename U >
std::ostream & siderust::cartesian::operator<< (std::ostream &os, const Position< C, F, U > &pos)
 Stream operator for Position.
 

Detailed Description

Typed cartesian coordinate templates.

Definition in file cartesian.hpp.