Mjolnir Core
Core functionality of the Mjolnir API

◆ cross_product() [1/2]

constexpr auto cross_product ( const std::array< T_Type, 3 > &  lhs,
const std::array< T_Type, 3 > &  rhs 
) -> std::array<T_Type, 3>
constexprnoexcept

Calculate the cross product of two 3d-vectors.

Template Parameters
T_TypeData type of the vector elements and the returned value
Parameters
[in]lhsData of the vector on the left-hand side of the operator
[in]rhsData of the vector on the right-hand side of the operator
Returns
Cross product