comp20003-project02/geometry.h
2021-09-09 21:23:53 +10:00

19 lines
No EOL
370 B
C

#ifndef GEOMETRY_HEADER
#define GEOMETRY_HEADER
typedef struct vertex {
double x;
double y;
} vertex_t;
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);
#endif