VISR  0.12.0
Versatile Interactive Scene Renderer
cartesian_spherical_conversion.hpp File Reference
#include <cmath>
#include <tuple>

Go to the source code of this file.

Namespaces

 visr
 
 visr::efl
 

Functions

template<typename T >
std::tuple< T, T, T > visr::efl::spherical2cartesian (T az, T el, T radius)
 
template<typename T >
std::tuple< T, T, T > visr::efl::cartesian2spherical (T x, T y, T z)
 

Detailed Description

Provide cartesian<->spherical conversion without imposing particular data types.

Author
Andreas Franck a.fra.nosp@m.nck@.nosp@m.soton.nosp@m..ac..nosp@m.uk