Skip to content

shz_mat4x4_apply_lookat

Markdown
SHZ_INLINE void shz_mat4x4_apply_lookat(shz_mat4x4_t* m, shz_vec3_t pos, shz_vec3_t target, shz_vec3_t up) SHZ_NOEXCEPT;

Applies the 3D "lookAt" matrix constructed with the given vector components onto the given matrix.

NameTypeDescription
mshz_mat4x4_t *
posshz_vec3_t
targetshz_vec3_t
upshz_vec3_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.