libflint/include/math.h

19 lines
346 B
C
Raw Normal View History

2021-12-10 22:33:37 +00:00
#ifndef LIBFLINT_H_MATH
#define LIBFLINT_H_MATH
2023-07-12 18:32:21 +00:00
#include "utility.h"
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);
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