No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
23 líneas
389 B
23 líneas
389 B
#ifndef __EMATH_H
|
|
#define __EMATH_H
|
|
|
|
#include <iostream>
|
|
#include <cmath>
|
|
#include <SDL_opengl.h>
|
|
|
|
namespace segl {
|
|
|
|
float deg2rad(float deg);
|
|
float rad2deg(float rad);
|
|
|
|
// *grml* scheiss cmath-sinus
|
|
// diese beiden sinusfunktionenrechnen erst deg2rad
|
|
// wenn es sich nicht um 0, 90, 180, 270 oder ein vielfaches handelt
|
|
float ssin(float);
|
|
float scos(float);
|
|
|
|
} // namespace segl
|
|
|
|
|
|
#endif
|