Luna::AffineMatrix::make_translation

Float4x4 make_translation(f32 x, f32 y, f32 z)

Constructs one 3D translation matrix from x, y and z position.

Parameters

  • in x

    The translation in X axis.

  • in y

    The translation in Y axis.

  • in z

    The translation in Z axis.

Return value

Returns the constructed matrix.