Skip to content

shz_xmtrx_translate

Markdown
SHZ_INLINE void shz_xmtrx_translate(float x, float y, float z) SHZ_NOEXCEPT;

Multiplies a 3D translation matrix into XMTRX.

NameTypeDescription
xfloatX component of the translation vector.
yfloatY component of the translation vector.
zfloatZ component of the translation vector.

Nothing (void).

Constructs a 4x4 3D translation matrix, whose translation column has the given components, RIGHT multiplying it into XMTRX, overwriting its previous contents.

  • This operation is equivalent to glTranslatef().

shz_xmtrx_translate_reverse, shz_xmtrx_add_translation