i solemnly swear to not push code that doesn't compile again

This commit is contained in:
Ole Morud
2022-06-08 17:04:47 +02:00
parent 28f11162eb
commit 4b468c1060

View File

@@ -28,6 +28,7 @@ typedef struct Link {
/*
* Function declarations
*/
double distance(Point* a, Point* b);
Link* link_points(Point* a, Point* b);
void draw_link(Canvas* c, Link* l);
void update_point(Point* p);
@@ -130,7 +131,7 @@ void update_point(Point* p){
* Moves points in link l such that their distance becomes l.length
*/
void update_link(Link* l){
double cur_dist = distance(l->a->x, l->a->y, l->b->x, l->b->y);
double cur_dist = distance(l->a, l->b);
double delta = l->length - cur_dist;
}