FxEngine
0.0.1
3d engine for fx9860G calculators
include
render
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 <fxengine/render/parameters.h>
6
7
/* FE_position:
8
notion de point dans l'espace simple */
9
typedef
struct
FE_integer_position
FE_integer_position
;
10
struct
FE_integer_position
11
{
12
int32_t
x
,
13
y
,
14
z
;
15
};
16
17
typedef
struct
FE_floating_position
FE_floating_position
;
18
struct
FE_floating_position
19
{
20
double
x
,
21
y
,
22
z
;
23
};
24
25
26
27
/* FE_point:
28
notion de point dans l'espace destiné à etre utilisé dans l'affichage */
29
typedef
struct
FE_integer_point
FE_integer_point
;
30
struct
FE_integer_point
31
{
32
FE_integer_position
real
,
33
translated
;
34
};
35
36
37
38
// applique la matrice de rotation et les deltas sur les coordonnées d'un point
39
void
render_translate
(
FE_integer_point
* point);
40
41
42
43
// change la matrice de rotation et les deltas pour le cycle à venir
44
void
render_set
(
const
double
dh,
const
double
dv,
const
double
roulis,
const
FE_integer_position
* camera);
45
46
47
48
// constantes mathématiques
49
50
extern
const
double
pi
,
pi2
,
pi_sur_2
;
51
52
53
// fonctions mathématiques
54
55
double
modulo_2pi
(
double
a);
56
57
double
cos
(
double
angle);
58
59
double
sin
(
const
double
angle);
60
61
#endif
sin
double sin(const double angle)
pi2
const double pi2
FE_integer_position::y
int32_t y
Definition:
translate.h:12
pi_sur_2
const double pi_sur_2
FE_floating_position
Definition:
translate.h:18
FE_integer_position::z
int32_t z
Definition:
translate.h:12
FE_integer_point::translated
FE_integer_position translated
Definition:
translate.h:32
FE_floating_position::z
double z
Definition:
translate.h:20
FE_floating_position::x
double x
Definition:
translate.h:20
modulo_2pi
double modulo_2pi(double a)
render_set
void render_set(const double dh, const double dv, const double roulis, const FE_integer_position *camera)
render_translate
void render_translate(FE_integer_point *point)
pi
const double pi
FE_integer_point::real
FE_integer_position real
Definition:
translate.h:32
FE_integer_point
Definition:
translate.h:30
FE_integer_position
Definition:
translate.h:10
FE_floating_position::y
double y
Definition:
translate.h:20
FE_integer_position::x
int32_t x
Definition:
translate.h:12
cos
double cos(double angle)
Generated by
1.8.15