YAP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions
CoordinateSystem.h File Reference
#include "fwd/CoordinateSystem.h"
#include "Vector.h"
#include "Matrix.h"
#include "ThreeVector.h"
#include <algorithm>
#include <string>
#include <type_traits>

Go to the source code of this file.

Namespaces

 yap
 
 

Macros

#define VECTOREPSILON   1e-10
 

Functions

template<typename T , size_t N>
std::string to_string (const CoordinateSystem< T, N > &C)
 
template<typename T , size_t N>
const CoordinateSystem< T, N > unit (const CoordinateSystem< T, N > &C)
 
template<typename T , size_t N>
const CoordinateSystem< T, N > operator* (const SquareMatrix< T, N > &M, const CoordinateSystem< T, N > &C)
 
Specifically for 3D systems
template<typename T >
constexpr bool isRightHanded (const CoordinateSystem< T, 3 > &C)
 
template<typename T >
constexpr bool isLeftHanded (const CoordinateSystem< T, 3 > &C)
 
template<typename T >
constexpr T phi (const ThreeVector< T > &V, const CoordinateSystem< T, 3 > &C)
 
template<typename T >
constexpr T theta (const ThreeVector< T > &V, const CoordinateSystem< T, 3 > &C)
 
template<typename T >
constexpr std::array< T, 2 > angles (const ThreeVector< T > &V, const CoordinateSystem< T, 3 > &C)