Namespaces | Functions | Variables
Math.h File Reference
#include <assert.h>
#include <math.h>
#include <float.h>
#include <cstdlib>
#include <OpenKarto/Types.h>
Include dependency graph for Math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  karto
namespace  karto::math

Functions

template<class T >
T karto::math::AlignValue (size_t value, size_t alignValue=8)
template<typename T >
const Tkarto::math::Clip (const T &n, const T &minValue, const T &maxValue)
kt_double karto::math::DegreesToRadians (kt_double degrees)
kt_bool karto::math::DoubleEqual (kt_double a, kt_double b)
template<typename T >
kt_bool karto::math::InRange (const T &value, const T &a, const T &b)
template<typename T >
kt_bool karto::math::IsUpTo (const T &value, const T &maximum)
template<typename T >
const Tkarto::math::Maximum (const T &value1, const T &value2)
template<typename T >
const Tkarto::math::Minimum (const T &value1, const T &value2)
kt_double karto::math::NormalizeAngle (kt_double angle)
kt_double karto::math::NormalizeAngleDifference (kt_double minuend, kt_double subtrahend)
kt_double karto::math::RadiansToDegrees (kt_double radians)
kt_double karto::math::Round (kt_double value)
template<typename T >
T karto::math::Square (T value)
template<class T >
void karto::math::Swap (T &x, T &y)

Variables

const kt_double karto::KT_180_PI = 57.29577951308232087685
const kt_double karto::KT_2PI = 6.28318530717958647692
const kt_double karto::KT_PI = 3.14159265358979323846
const kt_double karto::KT_PI_180 = 0.01745329251994329577
const kt_double karto::KT_PI_2 = 1.57079632679489661923
const kt_double karto::KT_TOLERANCE = 1e-06


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Sun Apr 2 2017 03:53:09