This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct point2df_struct { | |
float x; | |
float y; | |
} point_2Df; | |
typedef struct segment_struct { | |
float x1; | |
float y1; | |
float x2; | |
float y2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define RHO 400.0 // Circle radius | |
typedef struct point2df_struct { | |
float x; | |
float y; | |
} point_2Df; | |
typedef struct segment_struct { | |
float x1; | |
float y1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define RHO 400.0 // Circle radius | |
typedef struct point2df_struct { | |
float x; | |
float y; | |
} point_2Df; | |
typedef struct segment_struct { | |
float x1; | |
float y1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void print_bits(unsigned int num) { | |
for (int bit=0 ; bit<(sizeof(unsigned int) * 8) ; bit++, num = num >> 1) | |
printf("%i ", num & 0x01); | |
printf("\n"); | |
} |