Outer#

inline Matrix22 Outer(const Vec2 &a, const Vec2 &b)#

Computes the outer product of two 2D vectors.

Creates a 2x2 matrix from the outer product of vectors a and b, where b is treated as a row vector. The resulting matrix has elements: result(i,j) = a[i] * b[j]

Parameters:
  • a[in] First vector (treated as column vector)

  • b[in] Second vector (treated as row vector)

Returns:

2x2 matrix representing the outer product a ⊗ b