Skip to content

Commit

Permalink
feat: plane coordinates values
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioJPinto committed Feb 17, 2024
1 parent 4ca1e82 commit fbe1b8a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/figure_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,24 @@

std::unique_ptr<Figure> generatePlane(float length, int divisions) {
std::cout << "Generating Plane\n";
float max = length / 2;
float min = -max;

float div = length / divisions;

std::vector<float> all_values;
for(float i = min; i <= max; i+= div) {
all_values.push_back(i);
}



return std::make_unique<Figure>();
}

std::unique_ptr<Figure> generateBox(float dimension, int divisions) {
std::cout << "Generating Box\n";
std::cout << "Generating Box\n";

return std::make_unique<Figure>();
}

Expand Down

0 comments on commit fbe1b8a

Please sign in to comment.