xoreos  0.0.5
Classes | Namespaces | Macros | Functions
maths.h File Reference

Mathematical helpers. More...

#include <cmath>
#include <cfloat>
#include "src/common/system.h"
#include "src/common/types.h"
Include dependency graph for maths.h:

Go to the source code of this file.

Classes

struct  Common::Complex
 A complex number. More...
 

Namespaces

 Common
 

Macros

#define M_SQRT1_2   0.70710678118654752440 /* 1/sqrt(2) */
 
#define M_PI   3.14159265358979323846
 
#define FLT_MIN   1E-37
 
#define FLT_MAX   1E+37
 
#define INT32_MIN   ((int32) 0x80000000)
 
#define INT32_MAX   ((int32) 0x7FFFFFFF)
 

Functions

static int Common::intLog2 (uint32 v)
 
static float Common::rad2deg (float rad)
 
static float Common::deg2rad (float deg)
 

Detailed Description

Mathematical helpers.

Definition in file maths.h.

Macro Definition Documentation

◆ FLT_MAX

#define FLT_MAX   1E+37

◆ FLT_MIN

#define FLT_MIN   1E-37

◆ INT32_MAX

#define INT32_MAX   ((int32) 0x7FFFFFFF)

Definition at line 55 of file maths.h.

◆ INT32_MIN

#define INT32_MIN   ((int32) 0x80000000)

Definition at line 51 of file maths.h.

Referenced by Aurora::NWScript::NCSFile::o_div().

◆ M_PI

#define M_PI   3.14159265358979323846

◆ M_SQRT1_2

#define M_SQRT1_2   0.70710678118654752440 /* 1/sqrt(2) */

Definition at line 35 of file maths.h.