#ifndef UNTIL_H
#define UNTIL_H

static
float distance(float x1, float y1, float x2, float y2) {
    return sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
}

int random_wiggle(int denominator, int radius) {
    return (rand() % denominator)
         ? (rand() % (2*radius)) - radius
         : 0
    ;
}

#endif