Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Functions
Saf/Math/Basic.h File Reference

Basic mathematical functions and structures.
More...

#include <math.h>
#include "../Type.h"

Go to the source code of this file.

Namespaces

namespace  Saf
 Global library namespace.
namespace  Saf::Math
 Mathematical functions and structures.

Functions

template<class T >
Saf::Math::Abs (T x)
 Calculate absolute value of a number.
template<class T >
Saf::Math::IntegerDivCeil (T dividend, T divisor)
 Integer division rounded up.
template<class T >
Saf::Math::Restrict (T x, T low, T high)
 Restrict the value of a number.
template<class T >
Saf::Math::Round (T v)
 Round number.
template<class T >
Int8 Saf::Math::Sgn (T val)
 Sign function.

Detailed Description

Basic mathematical functions and structures.
Author:
Ondrej Danek ondre.nosp@m.j.da.nosp@m.nek@g.nosp@m.mail.nosp@m..com
Date:
2010