WIP: version stable avant la création des fonctions add / remove_an_arrow (North = - Z / South = + Z)

This commit is contained in:
Jean Sirmai 2023-08-11 09:13:53 +02:00
parent 3cba87beed
commit 4838c6ef74
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 9 additions and 11 deletions

View File

@ -83,13 +83,11 @@ static bool grids_intersections (long x, long y, long z,
static bool arrows_anchors (long x, long y, long z, static bool arrows_anchors (long x, long y, long z,
GLfloat *vertex_origin, GLfloat *colors_origin) GLfloat *vertex_origin, GLfloat *colors_origin)
{ {
/* beaucoup de ^c ^v ici (peu d'info) (mais un peu)
X - X = EAST - WEST = rouge - cyan // X - X = EAST - WEST = rouge - cyan
Y - Y = ZENITH - NADIR = vert - magenta // Y - Y = ZENITH - NADIR = vert - magenta
Z - Z = NORTH - SOUTH = bleu - jaune // Z - Z = SOUTH - NORTH = jaune - bleu
*/
float max = fmax(x, y); float max = fmax(x, y);
max = fmax(max, z); max = fmax(max, z);
@ -439,8 +437,8 @@ static void draw_a_central_star(GLuint *lines_origin, long n)
#define WEST 1 // - x cyan #define WEST 1 // - x cyan
#define ZENITH 2 // + y vert #define ZENITH 2 // + y vert
#define NADIR 3 // - y magenta #define NADIR 3 // - y magenta
#define SOUTH 4 // - z jaune #define SOUTH 4 // + z jaune
#define NORTH 5 // + z bleu #define NORTH 5 // - z bleu
static void draw_some_arrows_demo (GLuint *lines_origin, static void draw_some_arrows_demo (GLuint *lines_origin,
long s, long x, long y, long z, long s, long x, long y, long z,
@ -493,7 +491,7 @@ static void draw_some_arrows (GLuint *lines_origin, long s, long stx, long sty,
// X - X = EAST - WEST = rouge - cyan // X - X = EAST - WEST = rouge - cyan
// Y - Y = ZENITH - NADIR = vert - magenta // Y - Y = ZENITH - NADIR = vert - magenta
// Z - Z = NORTH - SOUTH = bleu - jaune // Z - Z = SOUTH - NORTH = jaune - bleu
@ -603,5 +601,5 @@ bool compute_space_and_arrows(long model_size_x, long model_size_y, long model_s
// X - X = EAST - WEST = rouge - cyan // X - X = EAST - WEST = rouge - cyan
// Y - Y = ZENITH - NADIR = vert - magenta // Y - Y = ZENITH - NADIR = vert - magenta
// Z - Z = NORTH - SOUTH = bleu - jaune // Z - Z = SOUTH - NORTH = jaune - bleu