/*
 * Distance between two 2d points
 */

#include <math.h>

#include "geom.h"

double distance(struct point a, struct point b)
{
    return sqrt(pow(a.x - b.x, 2) + pow(a.y - b.y,2));
}