Luna::AffineMatrix::make_translation

Float3x3 make_translation(f32 x, f32 y)

Constructs one 2D translation matrix from x and y position.

Parameters

  • in x

    The translation in X axis.

  • in y

    The translation in Y axis.

Return value

Returns the constructed matrix.