Static Public Member Functions

ml7::utilities Class Reference

#include <utilities.h>

List of all members.

Static Public Member Functions

static float sgn (const float x)
static float abs (const float x)
static float min2 (const float a, const float b)
static float max2 (const float a, const float b)
static float sqr (const float x)
static float round (const float x)
static float deg2rad (const float alpha)
static float rad2deg (const float alpha)
static bool flt_eq (const float a, const float b, const float epsilon=FLT_EPSILON)
static bool flt_ls (const float a, const float b, const float epsilon=FLT_EPSILON)
static bool flt_leq (const float a, const float b, const float epsilon=FLT_EPSILON)

Member Function Documentation

float ml7::utilities::abs ( const float  x  )  [static]

Returns the absolute amount of a given value.

float ml7::utilities::deg2rad ( const float  alpha  )  [static]

Transforms a given angle alpha in degrees to radians.

bool ml7::utilities::flt_eq ( const float  a,
const float  b,
const float  epsilon = FLT_EPSILON 
) [static]

Checks whether the given float values are (nearly) equal.

bool ml7::utilities::flt_leq ( const float  a,
const float  b,
const float  epsilon = FLT_EPSILON 
) [static]

Checks whether the value of a is less than or equal to the value of b.

bool ml7::utilities::flt_ls ( const float  a,
const float  b,
const float  epsilon = FLT_EPSILON 
) [static]

Checks whether the value of a is less than the value of b.

float ml7::utilities::max2 ( const float  a,
const float  b 
) [static]

Returns the greater value of two given values.

float ml7::utilities::min2 ( const float  a,
const float  b 
) [static]

Returns the less value of two given values.

float ml7::utilities::rad2deg ( const float  alpha  )  [static]

Transforms a given angle alpha in radians to degrees.

float ml7::utilities::round ( const float  x  )  [static]

Rounds the given value to the closest integer value (as a float).

float ml7::utilities::sgn ( const float  x  )  [static]

Returns the sign (-1 or +1) of a given value.

float ml7::utilities::sqr ( const float  x  )  [static]

Returns a given value squared.


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