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 
64 void render_set(const double dh, const double dv, const double roulis, const render_integer_position * camera);
65 
66 
67 
71 extern const double pi, pi2, pi_sur_2;
72 
73 
82 double modulo_2pi(double a);
83 
91 double cos(double angle);
92 
100 double sin(const double angle);
101 
102 #endif
struct render_triangle const double const double const double roulis
Definition: triangle.h:47
double sin(const double angle)
Homemade sinus implementation, which is faster than casio provided sinus function.
const double pi2
render_integer_position real
Definition: translate.h:38
struct render_triangle const double dh
Definition: triangle.h:47
const double pi_sur_2
struct render_triangle const double const double const double const render_integer_position * camera
Definition: triangle.h:47
void render_translate(render_integer_point *point)
This function rotates and applies perspective on an integer point.
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 render_integer_position *camera)
Sets up the translation matrices for a new rendering cycle There is no need to call this function if ...
This is a point which is used for 3d translations and rendering integer mode is the best solution to ...
Definition: translate.h:36
const double pi
render_integer_position translated
Definition: translate.h:38
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
struct render_triangle const double const double dv
Definition: triangle.h:47
double cos(double angle)
Homemade cosinus implementation, which is faster than casio provided cosinus function.
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