nit: `static_cast<double>(points)`