From fbe1b8a24ef16af1df11eecf867837667abda938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20Pinto?= Date: Sat, 17 Feb 2024 23:10:05 +0000 Subject: [PATCH] feat: plane coordinates values --- src/figure_generator.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/figure_generator.cpp b/src/figure_generator.cpp index 6ff9982..d3cf248 100644 --- a/src/figure_generator.cpp +++ b/src/figure_generator.cpp @@ -6,11 +6,24 @@ std::unique_ptr
generatePlane(float length, int divisions) { std::cout << "Generating Plane\n"; + float max = length / 2; + float min = -max; + + float div = length / divisions; + + std::vector all_values; + for(float i = min; i <= max; i+= div) { + all_values.push_back(i); + } + + + return std::make_unique
(); } std::unique_ptr
generateBox(float dimension, int divisions) { - std::cout << "Generating Box\n"; + std::cout << "Generating Box\n"; + return std::make_unique
(); }