00001
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef BRESENHAM_H
00030
00031 #define BRESENHAM_H 1
00032 #include "project_utilities.h"
00033
00034 BEGIN_C_DECLARATIONS
00035
00037 typedef struct Bresenham_line * bresenham_linep_t;
00038
00039 bresenham_linep_t bresenham_from_s_coord (int32_t first_col,
00040 int32_t first_row,
00041 int32_t last_col,
00042 int32_t last_row);
00043
00044 int bresenham_next_s (bresenham_linep_t bline,
00045 int32_t * col, int32_t * row);
00046
00047 bresenham_linep_t bresenham_from_coord (uint32_t first_col,
00048 uint32_t first_row,
00049 uint32_t last_col,
00050 uint32_t last_row);
00051
00052 int bresenham_next (bresenham_linep_t bline,
00053 uint32_t * col, uint32_t * row);
00054
00055 void demolish_bresenham (bresenham_linep_t * blinehandle);
00056
00057 END_C_DECLARATIONS
00058
00059 #endif