Skip to content

Commit ff441e0

Browse files
committed
style: remove interaction with the user
Helps with #2753
1 parent be550cd commit ff441e0

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

math/vector_cross_product.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
* @author [Shreyas Sable](https://github.com/Shreyas-OwO)
4646
*/
4747

48-
#include <iostream>
4948
#include <array>
5049
#include <cmath>
5150
#include <cassert>
@@ -110,24 +109,5 @@ int main() {
110109

111110
/// Tests the functions with sample input before asking for user input.
112111
test();
113-
114-
std::array<double, 3> vec1;
115-
std::array<double, 3> vec2;
116-
117-
/// Gets the values for the first vector.
118-
std::cout << "\nPass the first Vector: ";
119-
std::cin >> vec1[0] >> vec1[1] >> vec1[2];
120-
121-
/// Gets the values for the second vector.
122-
std::cout << "\nPass the second Vector: ";
123-
std::cin >> vec2[0] >> vec2[1] >> vec2[2];
124-
125-
/// Displays the output out.
126-
std::array<double, 3> product = math::vector_cross::cross(vec1, vec2);
127-
std::cout << "\nThe cross product is: " << product[0] << " " << product[1] << " " << product[2] << std::endl;
128-
129-
/// Displays the magnitude of the cross product.
130-
std::cout << "Magnitude: " << math::vector_cross::mag(product) << "\n" << std::endl;
131-
132112
return 0;
133113
}

0 commit comments

Comments
 (0)