2021-12-10 22:33:37 +00:00
|
|
|
#ifndef LIBFLINT_H_MATH
|
|
|
|
#define LIBFLINT_H_MATH
|
|
|
|
|
2023-11-29 21:40:41 +00:00
|
|
|
#include "lfutility.h"
|
2022-03-30 21:35:23 +00:00
|
|
|
|
2021-12-10 22:33:37 +00:00
|
|
|
int max_int(int a, int b);
|
2022-03-28 17:52:16 +00:00
|
|
|
|
2021-12-10 22:33:37 +00:00
|
|
|
int min_int(int a, int b);
|
2022-03-28 17:52:16 +00:00
|
|
|
|
2022-03-21 21:32:31 +00:00
|
|
|
int clamp_int(int i, int low, int high);
|
2022-03-28 17:52:16 +00:00
|
|
|
|
2021-12-10 22:33:37 +00:00
|
|
|
int binstr_to_int(const char *s);
|
|
|
|
|
2022-03-30 21:35:23 +00:00
|
|
|
Point *bresenham(int x0, int y0, int x1, int y1, size_t *sz);
|
|
|
|
|
|
|
|
Point *bresenham_p(Point p1, Point p2, size_t *sz);
|
|
|
|
|
2021-12-10 22:33:37 +00:00
|
|
|
#endif // LIBFLINT_H_MATH
|