Developer documentation
Version 3.0.3-105-gd3941f44
sphere.h File Reference
#include <cmath>
#include <sys/types.h>
#include <type_traits>
#include <Eigen/Core>
#include "math/math.h"

Go to the source code of this file.

Namespaces

namespace  MR
 
namespace  MR::Math
 
namespace  MR::Math::Sphere
 

Functions

template<class VectorType1 , class VectorType2 >
std::enable_if< VectorType1::IsVectorAtCompileTime, void >::type MR::Math::Sphere::spherical2cartesian (const VectorType1 &az_el_r, VectorType2 &&xyz)
 convert spherical coordinates to Cartesian coordinates More...
 
template<class MatrixType1 , class MatrixType2 >
std::enable_if<!MatrixType1::IsVectorAtCompileTime, void >::type MR::Math::Sphere::spherical2cartesian (const MatrixType1 &az_el, MatrixType2 &&cartesian)
 convert matrix of spherical coordinates to Cartesian coordinates More...
 
template<class MatrixType >
std::enable_if<!MatrixType::IsVectorAtCompileTime, Eigen::MatrixXd >::type MR::Math::Sphere::spherical2cartesian (const MatrixType &az_el)
 convert matrix of spherical coordinates to Cartesian coordinates More...
 
template<class VectorType1 , class VectorType2 >
std::enable_if< VectorType1::IsVectorAtCompileTime, void >::type MR::Math::Sphere::cartesian2spherical (const VectorType1 &xyz, VectorType2 &&az_el_r)
 convert Cartesian coordinates to spherical coordinates More...
 
template<class MatrixType1 , class MatrixType2 >
std::enable_if<!MatrixType1::IsVectorAtCompileTime, void >::type MR::Math::Sphere::cartesian2spherical (const MatrixType1 &cartesian, MatrixType2 &&az_el, bool include_r=false)
 convert matrix of Cartesian coordinates to spherical coordinates More...
 
template<class MatrixType >
std::enable_if<!MatrixType::IsVectorAtCompileTime, Eigen::MatrixXd >::type MR::Math::Sphere::cartesian2spherical (const MatrixType &cartesian, bool include_r=false)
 convert matrix of Cartesian coordinates to spherical coordinates More...
 
template<class MatrixType >
void MR::Math::Sphere::normalise_cartesian (MatrixType &cartesian)
 normalise a set of Cartesian coordinates More...