Trace#

inline float Trace(const Matrix33 &a)#

Computes the trace (sum of diagonal elements) of a matrix.

Parameters:

a[in] Matrix to compute trace for

Returns:

Sum of diagonal elements