trace method

double trace()

Returns the trace of this matrix (sum of diagonal elements: m0 + m5 + m10 + m15).

Implementation

double trace() => m0 + m5 + m10 + m15;