KatanaNativeInterface  $VERSION$
Classes | Namespaces | Macros | Functions
MathHelperFunctions.h File Reference
#include <cmath>
#include <vector>
#include <functional>
#include <cassert>
Include dependency graph for MathHelperFunctions.h:

Go to the source code of this file.

Classes

struct  KNI_MHF::unary_precalc_sin< _T >
 function-object which calculates sinus for n-elements of a container if used together with a STL algorithm More...
 
struct  KNI_MHF::unary_precalc_cos< _T >
 
struct  KNI_MHF::unary_rad2deg< _T >
 a function-object version of rad2deg More...
 
struct  KNI_MHF::unary_deg2rad< _T >
 a function-object version of rad2deg More...
 

Namespaces

 KNI_MHF
 

Macros

#define M_PI   3.14159265358979323846
 

Functions

template<typename _T >
short KNI_MHF::sign (_T x)
 
template<typename _T >
_T KNI_MHF::atan1 (_T in1, _T in2)
 
template<typename _T >
_T KNI_MHF::acotan (const _T in)
 
template<typename _T >
_T KNI_MHF::atan0 (const _T in1, const _T in2)
 
template<typename _T >
_T KNI_MHF::pow2 (const _T in)
 
template<typename _T >
_T KNI_MHF::rad2deg (const _T a)
 conversion from radian to degree More...
 
template<typename _T >
_T KNI_MHF::deg2rad (const _T a)
 conversion from degree to radian More...
 
template<typename _T >
_T KNI_MHF::anglereduce (const _T a)
 
template<typename _angleT , typename _encT >
_encT KNI_MHF::rad2enc (_angleT const &angle, _angleT const &angleOffset, _encT const &epc, _encT const &encOffset, _encT const &rotDir)
 converts absolute angles in radian to encoders. More...
 
template<typename _angleT , typename _encT >
_angleT KNI_MHF::enc2rad (_encT const &enc, _angleT const &angleOffset, _encT const &epc, _encT const &encOffset, _encT const &rotDir)
 converts encoders to absolute angles in radian More...
 
double KNI_MHF::findFirstEqualAngle (double cosValue, double sinValue, double tolerance)
 Find the first equal angle. More...
 

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846