common.h (465B)
1 #ifndef COMMON_H_ 2 #define COMMON_H_ 3 4 #include <assert.h> 5 #include <flint.h> 6 #include <fmpq.h> 7 #include <fmpq_mat.h> 8 #include <stdint.h> 9 #include <stdio.h> 10 #include <stdlib.h> 11 12 #include <reading.h> 13 14 typedef struct point3d { 15 fmpq_t c[3]; 16 } pt_t; 17 18 typedef struct fromline { 19 uint64_t pt[3]; 20 int64_t dir[3]; 21 } dline_t; 22 23 void read_pts(pt_t *pts, pt_t *dir, char **lines, size_t nlines); 24 25 /* DEBUG */ 26 void print_point(pt_t p); 27 void print_pp(pt_t p, pt_t q); 28 29 #endif