2019-07-19 21:55:17 +02:00
|
|
|
#ifndef FE_COORD_H
|
|
|
|
#define FE_COORD_H
|
|
|
|
|
|
|
|
|
2019-07-20 16:29:46 +02:00
|
|
|
typedef struct FE_position FE_position;
|
|
|
|
struct FE_position
|
2019-07-22 16:28:59 +02:00
|
|
|
{int x,y,z;};
|
2019-07-19 21:55:17 +02:00
|
|
|
|
2019-07-20 16:29:46 +02:00
|
|
|
typedef struct FE_point FE_point;
|
|
|
|
struct FE_point
|
2019-08-02 10:18:29 +02:00
|
|
|
{FE_position real,translated,rotated};
|
2019-07-22 16:28:59 +02:00
|
|
|
|
2019-07-20 16:29:46 +02:00
|
|
|
|
2019-07-23 18:30:27 +02:00
|
|
|
void FE_calc(FE_point* point);
|
2019-07-22 16:28:59 +02:00
|
|
|
|
|
|
|
// sets rotation matrice
|
2019-07-21 20:14:54 +02:00
|
|
|
void FE_set_matrice(void);
|
2019-07-19 21:55:17 +02:00
|
|
|
|
|
|
|
|
2019-07-22 16:28:59 +02:00
|
|
|
|
|
|
|
// Maths
|
|
|
|
extern const double pi;
|
|
|
|
extern const double pi2;
|
|
|
|
extern const double pi_sur2;
|
2019-07-23 17:13:35 +02:00
|
|
|
double FE_modulo_2pi(double a);
|
2019-07-22 16:28:59 +02:00
|
|
|
double FE_cos(double angle);
|
|
|
|
double FE_sin(double angle);
|
|
|
|
|
|
|
|
|
2019-07-19 21:55:17 +02:00
|
|
|
#endif
|