Template Function TRAP::Math::Dot(const Vec<L, T>&, const Vec<L, T>&)#

Function Documentation#

template<u32 L, typename T>
constexpr T TRAP::Math::Dot(const Vec<L, T> &x, const Vec<L, T> &y)#

Calculate the dot product.

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

  • y – Specifies the second of two vectors.

Returns:

Dot product of x and y, i.e., result = x * y.