Skip to content

shz_mat4x4_apply_perspective

Markdown
SHZ_INLINE void shz_mat4x4_apply_perspective(shz_mat4x4_t* m, float fov, float aspect, float znear) SHZ_NOEXCEPT;

Multiplies and accumulates the perspective matrix constructed from the given values onto the given matrix.

NameTypeDescription
mshz_mat4x4_t *
fovfloat
aspectfloat
znearfloat

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.