MatrixTrace function

double MatrixTrace(
  1. Matrix4 mat
)

Implementation

double MatrixTrace(Matrix4 mat) => mat[0] + mat[5] + mat[10] + mat[15];