Mjolnir Core
Core functionality of the Mjolnir API

◆ cross_product() [2/2]

auto cross_product ( T_RegisterType  lhs,
T_RegisterType  rhs 
) -> T_RegisterType
inlinenoexcept

Calculate the cross product of two 3d-vectors.

Only the first 3 elements of a register are considered.

Template Parameters
T_RegisterTypeRegister type that stores the vector data.
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