Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
23 wiersze
389 B
23 wiersze
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
|