ARGoS  3
A parallel, multi-engine simulator for swarm robotics
core/utility/math/general.h File Reference
#include <argos3/core/utility/datatypes/datatypes.h>
#include <vector>
#include <utility>
+ Include dependency graph for general.h:

Go to the source code of this file.

Namespaces

namespace  argos
 

The namespace containing all the ARGoS related code.


Defines

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

Functions

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

Define Documentation

#define Exp   ::expf

Definition at line 64 of file general.h.

#define Log   ::logf

Definition at line 62 of file general.h.

#define Sqrt   ::sqrtf

Definition at line 63 of file general.h.