epilines.cpp:
const variables and parameters (legacy.hpp),
static functions,
avoid slow sqrt() if not needed,
avoid calloc() for less mem fragmentation,
a/b == a*(1/b) // faster if const or reused.