FxEngine  0.0.1
3d engine for fx9860G calculators
translate.h
Go to the documentation of this file.
1 #ifndef RENDER_TRANSLATE_H
2 #define RENDER_TRANSLATE_H
3 
4 #include <stdint.h>
5 #include <render/parameters.h>
6 
12 {
13  int32_t x,
14  y,
15  z;
16 };
18 
24 {
25  double x,
26  y,
27  z;
28 };
30 
31 
37 {
39  translated;
40 };
42 
43 
44 // applique la matrice de rotation et les deltas sur les coordonnées d'un point
45 
52 
53 
54 
63 void render_set(const double dh, const double dv, const double roulis, const FE_integer_position * camera);
64 
65 
66 
70 extern const double pi, pi2, pi_sur_2;
71 
72 
81 double modulo_2pi(double a);
82 
90 double cos(double angle);
91 
99 double sin(const double angle);
100 
101 #endif
double sin(const double angle)
Homemade sinus implementation, which is faster than casio provided sinus function.
const double pi2
const double pi_sur_2
this struct is a point in 3d, which has coords save as double it is not recommended to use it for hig...
Definition: translate.h:23
FE_integer_position translated
Definition: translate.h:38
double modulo_2pi(double a)
Sets up an angle mesure between -pi and +pi.
void render_set(const double dh, const double dv, const double roulis, const FE_integer_position *camera)
Sets up the translation matrices for a new rendering cycle.
void render_translate(FE_integer_point *point)
This function rotates and applies perspective on an integer point.
const double pi
FE_integer_position real
Definition: translate.h:38
This is a point which is used for 3d translations and rendering integer mode is the best solution to ...
Definition: translate.h:36
this struct is a point in 3d, which has coords save as uint32_t this is the recommended type for high...
Definition: translate.h:11
double cos(double angle)
Homemade cosinus implementation, which is faster than casio provided cosinus function.