2021-09-09 17:10:24 +10:00
|
|
|
#ifndef GEOMETRY_HEADER
|
|
|
|
#define GEOMETRY_HEADER
|
|
|
|
|
|
|
|
typedef struct vertex {
|
|
|
|
double x;
|
|
|
|
double y;
|
|
|
|
} vertex_t;
|
|
|
|
|
2021-09-09 21:23:53 +10:00
|
|
|
typedef struct bisector {
|
|
|
|
int isSlopeInfinite;
|
|
|
|
double slope;
|
|
|
|
double x;
|
|
|
|
double y;
|
|
|
|
} bisector_t;
|
|
|
|
|
|
|
|
/* Calculates and returns the equation of a bisector of two points */
|
|
|
|
bisector_t getBisector(vertex_t *vertexA, vertex_t *vertexB);
|
|
|
|
|
2021-09-09 17:10:24 +10:00
|
|
|
#endif
|