C++ interface for angles (degrees/radians). More...
#include <cmath>
#include <ecl/config/macros.hpp>
#include <ecl/linear_algebra.hpp>
#include <ecl/type_traits/fundamental_types.hpp>
#include <ecl/mpl/enable_if.hpp>
#include <ecl/math/constants.hpp>
Go to the source code of this file.
Classes | |
class | ecl::Angle< T, Enable > |
Parent template definition for angles. More... | |
class | ecl::Angle< T, enable_if< is_float< T > >::type > |
Interface for angular measurements. More... | |
Namespaces | |
namespace | ecl |
Embedded control libraries. | |
Functions | |
template<typename T > | |
ECL_PUBLIC T | ecl::degrees_to_radians (const T °rees, typename enable_if< ecl::is_float< T > >::type *dummy=0) |
Converts degrees to radians and returns the result. | |
template<typename T > | |
ECL_PUBLIC T | ecl::radians_to_degrees (const T &radians, typename enable_if< ecl::is_float< T > >::type *dummy=0) |
Converts radians to degrees and returns the result. | |
ECL_PUBLIC const float & | ecl::wrap_angle (float &angle) |
Wrap the angle on -pi,pi (float types). | |
ECL_PUBLIC float | ecl::wrap_angle (const float &angle) |
Return the wrapped the angle on -pi,pi (float types). | |
ECL_PUBLIC const double & | ecl::wrap_angle (double &angle) |
Wrap the angle on -pi,pi (double types). | |
ECL_PUBLIC double | ecl::wrap_angle (const double &angle) |
Return the wrapped the angle on -pi,pi (double types). |