comp20003-project02/geometry.h

19 lines
370 B
C
Raw Normal View History

#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);
#endif