Static Public Member Functions | Static Public Attributes | List of all members
nmx::Math Struct Reference

The Math struct Mathematische Hilfsfunktionen. More...

#include <xmath.h>

Static Public Member Functions

static double to_radians (double x)
 
static double to_degrees (double x)
 
static bool is_zero (double x, double epsilon)
 
static int cmp (double x, double y, double epsilon)
 
static int sign (double x)
 

Static Public Attributes

static constexpr double PI = M_PI
 
static constexpr double E = M_E
 

Detailed Description

The Math struct Mathematische Hilfsfunktionen.

Definition at line 9 of file xmath.h.

Member Function Documentation

◆ cmp()

static int nmx::Math::cmp ( double  x,
double  y,
double  epsilon 
)
inlinestatic

Definition at line 24 of file xmath.h.

◆ is_zero()

static bool nmx::Math::is_zero ( double  x,
double  epsilon 
)
inlinestatic

Definition at line 20 of file xmath.h.

◆ sign()

static int nmx::Math::sign ( double  x)
inlinestatic

Definition at line 28 of file xmath.h.

◆ to_degrees()

static double nmx::Math::to_degrees ( double  x)
inlinestatic

Definition at line 17 of file xmath.h.

◆ to_radians()

static double nmx::Math::to_radians ( double  x)
inlinestatic

Definition at line 15 of file xmath.h.

Member Data Documentation

◆ E

constexpr double nmx::Math::E = M_E
inlinestatic

Definition at line 13 of file xmath.h.

◆ PI

constexpr double nmx::Math::PI = M_PI
inlinestatic

Definition at line 11 of file xmath.h.


The documentation for this struct was generated from the following file: