DART  6.6.2
Helpers.hpp File Reference
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <Eigen/Dense>
#include "dart/math/Constants.hpp"
#include "dart/math/MathTypes.hpp"

Go to the source code of this file.

Namespaces

 dart
 
 dart::math
 
 dart::math::suffixes
 
 dart::Color
 

Functions

template<typename T >
constexpr T dart::math::toRadian (const T &degree)
 
template<typename T >
constexpr T dart::math::toDegree (const T &radian)
 
const Eigen::Matrix2d dart::math::CR ((Eigen::Matrix2d()<< 0.0, -1.0, 1.0, 0.0).finished())
 a cross b = (CR*a) dot b const Matd CR(2,2,0.0,-1.0,1.0,0.0); More...
 
int dart::math::delta (int _i, int _j)
 
template<typename T >
constexpr int dart::math::sign (T x, std::false_type)
 
template<typename T >
constexpr int dart::math::sign (T x, std::true_type)
 
template<typename T >
constexpr int dart::math::sign (T x)
 
double dart::math::sqr (double _x)
 
double dart::math::Tsinc (double _theta)
 
bool dart::math::isZero (double _theta)
 
double dart::math::asinh (double _X)
 
double dart::math::acosh (double _X)
 
double dart::math::atanh (double _X)
 
double dart::math::asech (double _X)
 
double dart::math::acosech (double _X)
 
double dart::math::acotanh (double _X)
 
double dart::math::round (double _x)
 
double dart::math::round2 (double _x)
 
template<typename T >
dart::math::clip (const T &val, const T &lower, const T &upper)
 
template<typename DerivedA , typename DerivedB >
DerivedA::PlainObject dart::math::clip (const Eigen::MatrixBase< DerivedA > &val, const Eigen::MatrixBase< DerivedB > &lower, const Eigen::MatrixBase< DerivedB > &upper)
 
bool dart::math::isEqual (double _x, double _y)
 
bool dart::math::isInt (double _x)
 
bool dart::math::isNan (double _v)
 Returns whether _v is a NaN (Not-A-Number) value. More...
 
bool dart::math::isNan (const Eigen::MatrixXd &_m)
 Returns whether _m is a NaN (Not-A-Number) matrix. More...
 
bool dart::math::isInf (double _v)
 Returns whether _v is an infinity value (either positive infinity or negative infinity). More...
 
bool dart::math::isInf (const Eigen::MatrixXd &_m)
 Returns whether _m is an infinity matrix (either positive infinity or negative infinity). More...
 
bool dart::math::isSymmetric (const Eigen::MatrixXd &_m, double _tol=1e-6)
 Returns whether _m is symmetric or not. More...
 
unsigned dart::math::seedRand ()
 
double dart::math::random (double _min, double _max)
 
template<int N>
Eigen::Matrix< double, N, 1 > dart::math::randomVector (double _min, double _max)
 
template<int N>
Eigen::Matrix< double, N, 1 > dart::math::randomVector (double _limit)
 
Eigen::VectorXd dart::math::randomVectorXd (std::size_t size, double min, double max)
 
Eigen::VectorXd dart::math::randomVectorXd (std::size_t size, double limit)
 
constexpr double dart::math::suffixes::operator""_pi (long double x)
 
constexpr double dart::math::suffixes::operator""_pi (unsigned long long int x)
 
constexpr double dart::math::suffixes::operator""_rad (long double angle)
 
constexpr double dart::math::suffixes::operator""_rad (unsigned long long int angle)
 
constexpr double dart::math::suffixes::operator""_deg (long double angle)
 
constexpr double dart::math::suffixes::operator""_deg (unsigned long long int angle)
 
Eigen::Vector4d dart::Color::Red (double alpha)
 
Eigen::Vector3d dart::Color::Red ()
 
Eigen::Vector3d dart::Color::Fuchsia ()
 
Eigen::Vector4d dart::Color::Fuchsia (double alpha)
 
Eigen::Vector4d dart::Color::Orange (double alpha)
 
Eigen::Vector3d dart::Color::Orange ()
 
Eigen::Vector4d dart::Color::Green (double alpha)
 
Eigen::Vector3d dart::Color::Green ()
 
Eigen::Vector4d dart::Color::Blue (double alpha)
 
Eigen::Vector3d dart::Color::Blue ()
 
Eigen::Vector4d dart::Color::White (double alpha)
 
Eigen::Vector3d dart::Color::White ()
 
Eigen::Vector4d dart::Color::Black (double alpha)
 
Eigen::Vector3d dart::Color::Black ()
 
Eigen::Vector4d dart::Color::Gray (double alpha)
 
Eigen::Vector3d dart::Color::Gray ()
 
Eigen::Vector4d dart::Color::Random (double alpha)
 
Eigen::Vector3d dart::Color::Random ()