From 3000083db98340fe19d69438da654e652d754946 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 7 May 2023 14:02:45 +0200 Subject: [PATCH] u02/tests: Add link to desmos for circle --- u02/src/tests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/u02/src/tests.cpp b/u02/src/tests.cpp index 90dda1e..9e224dd 100644 --- a/u02/src/tests.cpp +++ b/u02/src/tests.cpp @@ -330,6 +330,9 @@ TEST_CASE("Bresenham circle (prop: √(x²+y²)-r<ε)") { // // When the points are rounded to the nearest integer, // M must be rounded down and m rounded down. + // + // An interactive version of this can be found here: + // https://www.desmos.com/calculator/kn19qhue20 const int size = 100; // s const int max_c = std::floor(size / (3 - std::sqrt(2))); // M (2) const int min_c = std::ceil(((4 - std::sqrt(2)) / 7) * size); // m (3)