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

Function Documentation#

template<typename T>
constexpr Vec<3, T> TRAP::Math::Cross(const Vec<3, T> &x, const Vec<3, T> &y)#

Calculate the cross product.

Parameters:
  • x – Specifies the first of two vectors.

  • y – Specifies the second of two vectors.

Returns:

Cross product of x and y.