74std::array<double, 3>
cross(
const std::array<double, 3> &A,
75 const std::array<double, 3> &B) {
76 std::array<double, 3> product;
78 product[0] = (A[1] * B[2]) - (A[2] * B[1]);
79 product[1] = -((A[0] * B[2]) - (A[2] * B[0]));
80 product[2] = (A[0] * B[1]) - (A[1] * B[0]);
std::array< double, 3 > cross(const std::array< double, 3 > &A, const std::array< double, 3 > &B)
Function to calculate the cross product of the passed arrays containing the direction ratios of the t...