From ff441e08c064c6f1c33f2498630aed9dbd6db005 Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Mon, 29 Sep 2025 22:27:59 +0200 Subject: [PATCH] style: remove interaction with the user Helps with #2753 --- math/vector_cross_product.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/math/vector_cross_product.cpp b/math/vector_cross_product.cpp index 391faceb8..301079a76 100644 --- a/math/vector_cross_product.cpp +++ b/math/vector_cross_product.cpp @@ -45,7 +45,6 @@ * @author [Shreyas Sable](https://github.com/Shreyas-OwO) */ -#include #include #include #include @@ -110,24 +109,5 @@ int main() { /// Tests the functions with sample input before asking for user input. test(); - - std::array vec1; - std::array vec2; - - /// Gets the values for the first vector. - std::cout << "\nPass the first Vector: "; - std::cin >> vec1[0] >> vec1[1] >> vec1[2]; - - /// Gets the values for the second vector. - std::cout << "\nPass the second Vector: "; - std::cin >> vec2[0] >> vec2[1] >> vec2[2]; - - /// Displays the output out. - std::array product = math::vector_cross::cross(vec1, vec2); - std::cout << "\nThe cross product is: " << product[0] << " " << product[1] << " " << product[2] << std::endl; - - /// Displays the magnitude of the cross product. - std::cout << "Magnitude: " << math::vector_cross::mag(product) << "\n" << std::endl; - return 0; }