Skip to content

shz_mat4x4_init_upper_triangular

Markdown
SHZ_INLINE void shz_mat4x4_init_upper_triangular(shz_mat4x4_t* mat, float col1, shz_vec2_t col2, shz_vec3_t col3, shz_vec4_t col4) SHZ_NOEXCEPT;

Initializes the given matrix to an upper triangular matrix whose nonzero entries have the given value.

NameTypeDescription
matshz_mat4x4_t *
col1float
col2shz_vec2_t
col3shz_vec3_t
col4shz_vec4_t

Nothing (void).

  • This routine clobbers XMTRX.
  • 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.