general.h File Reference
#include <argos3/core/utility/datatypes/datatypes.h>
#include <vector>
#include <utility>
#include <cmath>
Include dependency graph for general.h:

Go to the source code of this file.

Namespaces

 argos
 The namespace containing all the ARGoS related code.
 

Macros

#define Log   ::logf
 
#define Sqrt   ::sqrtf
 
#define Exp   ::expf
 
#define Mod   ::fmodf
 

Functions

template<typename T >
argos::Abs (const T &t_v)
 Returns the absolute value of the passed argument. More...
 
SInt32 argos::Abs (SInt32 t_v)
 Returns the absolute value of the passed argument. More...
 
Real argos::Abs (Real t_v)
 Returns the absolute value of the passed argument. More...
 
template<typename T >
argos::Min (const T &t_v1, const T &t_v2)
 Returns the smaller of the two passed arguments. More...
 
template<typename T >
T & argos::Min (T &t_v1, T &t_v2)
 Returns the smaller of the two passed arguments. More...
 
template<typename T >
argos::Max (const T &t_v1, const T &t_v2)
 Returns the bigger of the two passed arguments. More...
 
template<typename T >
T & argos::Max (T &t_v1, T &t_v2)
 Returns the bigger of the two passed arguments. More...
 
template<typename T >
SInt32 argos::Sign (const T &t_v)
 Returns the sign of the value of the passed argument. More...
 
template<typename T >
argos::Square (const T &t_v)
 Returns the square of the value of the passed argument. More...
 
SInt32 argos::Floor (Real f_value)
 Rounds the passed floating-point value to the closest lower integer. More...
 
SInt32 argos::Ceil (Real f_value)
 Rounds the passed floating-point value to the closest higher integer. More...
 
SInt32 argos::Round (Real f_value)
 Rounds the passed floating-point value to the closest integer. More...
 
SInt32 argos::RoundClosestToZero (Real f_value)
 Rounds the passed floating-point value to the integer closest to zero. More...
 
bool argos::DoubleEqAbsolute (Real f_value1, Real f_value2, Real f_epsilon)
 Tests whether a floating-point value is lower than another. More...
 
bool argos::DoubleEq (Real f_value1, Real f_value2)
 Tests whether a floating-point value is lower than another. More...
 
Real argos::Interpolate (Real f_x, const std::vector< std::pair< Real, Real > > &c_points)
 Return the value of the linear interpolation. More...
 

Macro Definition Documentation

◆ Exp

#define Exp   ::expf

Definition at line 65 of file general.h.

◆ Log

#define Log   ::logf

Definition at line 63 of file general.h.

◆ Mod

#define Mod   ::fmodf

Definition at line 66 of file general.h.

◆ Sqrt

#define Sqrt   ::sqrtf

Definition at line 64 of file general.h.