converter/other/pamtosvg/point.h
raw| 1 | #ifndef POINT_H_INCLUDED |
| 2 | #define POINT_H_INCLUDED |
| 3 | |
| 4 | #include <stdbool.h> |
| 5 | |
| 6 | typedef struct { |
| 7 | float x, y, z; |
| 8 | } Point; |
| 9 | |
| 10 | Point |
| 11 | point_make(float const x, |
| 12 | float const y, |
| 13 | float const z); |
| 14 | |
| 15 | bool |
| 16 | point_equal(Point const comparand, |
| 17 | Point const comparator); |
| 18 | |
| 19 | Point |
| 20 | point_sum(Point const coord1, |
| 21 | Point const coord2); |
| 22 | |
| 23 | Point |
| 24 | point_scaled(Point const coord, |
| 25 | float const r); |
| 26 | |
| 27 | float |
| 28 | point_distance(Point const p1, |
| 29 | Point const p2); |
| 30 | |
| 31 | #endif |