Template Function TRAP::Math::Cross(const tQuat<T>&, const tQuat<T>&)#

Function Documentation#

template<typename T>
constexpr tQuat<T> TRAP::Math::Cross(const tQuat<T> &q1, const tQuat<T> &q2) noexcept#

Calculate the cross product.

Template Parameters:

T – Floating-point scalar types.

Parameters:
  • q1 – Specifies the first of two quaternions.

  • q2 – Specifies the second of two quaternions.

Returns:

Compute a cross product.