Developer documentation
Version 3.0.3-105-gd3941f44
MR::Math::Sphere Namespace Reference

Functions

template<class VectorType1 , class VectorType2 >
std::enable_if< VectorType1::IsVectorAtCompileTime, void >::type 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 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 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 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 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 cartesian2spherical (const MatrixType &cartesian, bool include_r=false)
 convert matrix of Cartesian coordinates to spherical coordinates More...
 
template<class MatrixType >
void normalise_cartesian (MatrixType &cartesian)
 normalise a set of Cartesian coordinates More...
 

Function Documentation

◆ cartesian2spherical() [1/3]

template<class MatrixType >
std::enable_if<!MatrixType::IsVectorAtCompileTime, Eigen::MatrixXd >::type MR::Math::Sphere::cartesian2spherical ( const MatrixType &  cartesian,
bool  include_r = false 
)
inline

convert matrix of Cartesian coordinates to spherical coordinates

Definition at line 109 of file sphere.h.

◆ cartesian2spherical() [2/3]

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 
)
inline

convert matrix of Cartesian coordinates to spherical coordinates

Definition at line 97 of file sphere.h.

◆ cartesian2spherical() [3/3]

template<class VectorType1 , class VectorType2 >
std::enable_if< VectorType1::IsVectorAtCompileTime, void >::type MR::Math::Sphere::cartesian2spherical ( const VectorType1 &  xyz,
VectorType2 &&  az_el_r 
)
inline

convert Cartesian coordinates to spherical coordinates

Definition at line 83 of file sphere.h.

◆ normalise_cartesian()

template<class MatrixType >
void MR::Math::Sphere::normalise_cartesian ( MatrixType &  cartesian)
inline

normalise a set of Cartesian coordinates

Definition at line 121 of file sphere.h.

◆ spherical2cartesian() [1/3]

template<class MatrixType >
std::enable_if<!MatrixType::IsVectorAtCompileTime, Eigen::MatrixXd >::type MR::Math::Sphere::spherical2cartesian ( const MatrixType &  az_el)
inline

convert matrix of spherical coordinates to Cartesian coordinates

Definition at line 70 of file sphere.h.

◆ spherical2cartesian() [2/3]

template<class MatrixType1 , class MatrixType2 >
std::enable_if<!MatrixType1::IsVectorAtCompileTime, void >::type MR::Math::Sphere::spherical2cartesian ( const MatrixType1 &  az_el,
MatrixType2 &&  cartesian 
)
inline

convert matrix of spherical coordinates to Cartesian coordinates

Definition at line 58 of file sphere.h.

◆ spherical2cartesian() [3/3]

template<class VectorType1 , class VectorType2 >
std::enable_if< VectorType1::IsVectorAtCompileTime, void >::type MR::Math::Sphere::spherical2cartesian ( const VectorType1 &  az_el_r,
VectorType2 &&  xyz 
)
inline

convert spherical coordinates to Cartesian coordinates

Definition at line 40 of file sphere.h.