Matrix.translation

Returns a translation matrix (3x3 and 4x4 matrices).

  1. Matrix translation(mt x, mt y, mt z)
    struct Matrix(type, int rows_, int cols_)
    @safe pure nothrow static
    static if((rows == cols) && (rows >= 3) && (rows <= 4))
    translation
    (,,)
    if (
    (rows_ > 0) &&
    (cols_ > 0)
    )
  2. Matrix translation(Vector!(mt, 3) v)

Meta