2022-12-10 14:29:04 +00:00
|
|
|
#ifndef GEOMETRIE_H
|
|
|
|
#define GEOMETRIE_H
|
|
|
|
|
2023-04-10 13:28:42 +00:00
|
|
|
#ifndef M_PI
|
|
|
|
#define M_PI (3.14159265358979323846)
|
|
|
|
#endif
|
|
|
|
|
2023-04-10 15:46:57 +00:00
|
|
|
#define DEGRE_EN_RADIAN (M_PI / 180.)
|
2023-04-21 20:33:29 +00:00
|
|
|
#define DISTANCE_INVALIDE (-1.)
|
2023-04-10 13:28:42 +00:00
|
|
|
|
2022-12-10 14:29:04 +00:00
|
|
|
struct position_t{
|
|
|
|
double x_mm, y_mm;
|
|
|
|
double angle_radian;
|
|
|
|
};
|
|
|
|
|
2023-04-10 15:46:57 +00:00
|
|
|
double Geometrie_get_angle_normalisee(double angle);
|
|
|
|
unsigned int Geometrie_compare_angle(double angle, double angle_min, double angle_max);
|
2023-04-13 17:43:35 +00:00
|
|
|
unsigned int Geometrie_intersecte_plage_angle(double angle1_min, double angle1_max, double angle2_min, double angle2_max);
|
2023-04-10 15:46:57 +00:00
|
|
|
|
2022-12-10 14:29:04 +00:00
|
|
|
#endif
|