Wiselib
Public Types | Static Public Member Functions | Public Attributes | Static Public Attributes
wiselib::StandaloneMath< OsModel_P > Class Template Reference

#include <standalone_math.h>

List of all members.

Public Types

typedef OsModel_P OsModel
typedef double real_t
typedef int32_t integer_t

Static Public Member Functions

static real_t sqrt (real_t)
static real_t radians_to_degrees (real_t)
static real_t degrees_to_radians (real_t)
static real_t sin (real_t)
static real_t cos (real_t)
static real_t tan (real_t)
static real_t asin (real_t)
static real_t acos (real_t)
static real_t fabs (real_t)
template<typename T >
static T sgn (T x)
static integer_t trunc (real_t)
 chop off everything after the decimal dot
static integer_t floor (real_t)
 round to nearest integer that is <= value
static integer_t ceil (real_t)
 round to nearest integer that is >= value
static integer_t round (real_t)
 round to nearest integer

Public Attributes

static const real_t PI_2 = 1.57079632679489661923
static const real_t PI_3 = 1.04719755119659763132
static const real_t PI_4 = 0.78539816339744830962
static const real_t PI_6 = 0.52359877559829881566

Static Public Attributes

static const real_t PI = 3.14159265358979323846

template<typename OsModel_P>
class wiselib::StandaloneMath< OsModel_P >


Member Typedef Documentation

template<typename OsModel_P>
typedef int32_t wiselib::StandaloneMath< OsModel_P >::integer_t
template<typename OsModel_P>
typedef OsModel_P wiselib::StandaloneMath< OsModel_P >::OsModel
template<typename OsModel_P>
typedef double wiselib::StandaloneMath< OsModel_P >::real_t

Member Function Documentation

template<typename OsModel_P>
StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::acos ( real_t  ) [static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::asin ( real_t  ) [static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::integer_t wiselib::StandaloneMath< OsModel_P >::ceil ( real_t  ) [static]

round to nearest integer that is >= value

template<typename OsModel_P>
StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::cos ( real_t  ) [static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::degrees_to_radians ( real_t  ) [static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::fabs ( real_t  ) [static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::integer_t wiselib::StandaloneMath< OsModel_P >::floor ( real_t  ) [static]

round to nearest integer that is <= value

template<typename OsModel_P>
StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::radians_to_degrees ( real_t  ) [static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::integer_t wiselib::StandaloneMath< OsModel_P >::round ( real_t  ) [static]

round to nearest integer

template<typename OsModel_P>
template<typename T >
static T wiselib::StandaloneMath< OsModel_P >::sgn ( x) [inline, static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::sin ( real_t  ) [static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::sqrt ( real_t  ) [static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::tan ( real_t  ) [static]
template<typename OsModel_P>
StandaloneMath< OsModel_P >::integer_t wiselib::StandaloneMath< OsModel_P >::trunc ( real_t  ) [static]

chop off everything after the decimal dot


Member Data Documentation

template<typename OsModel_P>
const StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::PI = 3.14159265358979323846 [static]
template<typename OsModel_P>
const StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::PI_2 = 1.57079632679489661923
template<typename OsModel_P>
const StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::PI_3 = 1.04719755119659763132
template<typename OsModel_P>
const StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::PI_4 = 0.78539816339744830962
template<typename OsModel_P>
const StandaloneMath< OsModel_P >::real_t wiselib::StandaloneMath< OsModel_P >::PI_6 = 0.52359877559829881566

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines