Skip to content

shz_mat4x4_trace

Markdown
SHZ_INLINE float shz_mat4x4_trace(const shz_mat4x4_t* mat) SHZ_NOEXCEPT;

Returns the trace of the given 4x4 matrix.

NameTypeDescription
matconst shz_mat4x4_t *

float

  • shz_mat4x4_t and shz_mat2x2_t arguments must be 8-byte aligned. Unaligned data goes through the float[16] parameters of the _unaligned routines.