|
| template<class T > |
| T | stateObservation::tools::square (const T &x) |
| | computes the square of a value of any type
|
| |
| template<class T > |
| T | stateObservation::tools::derivate (const T &o1, const T &o2, double dt) |
| | derivates any type with finite differences
|
| |
| template<typename T > |
| int | stateObservation::tools::signum (T x) |
| | gives the sign of a variable (1, 0 or -1)
|
| |
| template<typename T > |
| std::string | stateObservation::tools::toString (T val) |
| |
| bool | stateObservation::tools::checkIfNormalized (const Vector3 &v) |
| | checks if the vector is already normalized or not
|
| |
| bool | stateObservation::tools::checkIfNormalized (const Vector3 &v, double &outputSquaredNorm) |
| | checks if the vector is already normalized or not
|
| |
| template<typename T > |
| T | stateObservation::tools::clampScalar (const T &x, const T &max, const T &min) |
| | returns the value clamped between min and max
|
| |
| template<typename T > |
| T | stateObservation::tools::clampScalar (const T &x, const T &limit) |
| | returns the value clamped between limit and -limit
|
| |
| Vector3 | stateObservation::tools::normalizedLazy (const Vector3 &v) |
| | normalize the vector only if it is not normalized already. Useful if the vector is likely to be normalized
|
| |
| double STATE_OBSERVATION_DLLAPI | stateObservation::tools::finiteTimeAccControl (double x, double xd, double kp=-1, double kv=-1) |
| |
| Vector STATE_OBSERVATION_DLLAPI | stateObservation::tools::finiteTimeAccControl (const Vector &x, const Vector &xd, double kp=-1, double kv=-1) |
| | sqme as the scalar version but for every member of the vector
|
| |
| double constexpr | stateObservation::tools::Detail::sqrtNewtonRaphson (double x, double curr, double prev) |
| |
| double constexpr | stateObservation::tools::sqrt (double x) |
| | Constexpr version of the square root.
|
| |
Gathers many kinds of algorithms.
- Author
- Mehdi Benallegue
- Date
- 2013