Matrix.set_translation

Copyies the translation from mat to the current matrix (nxn matrices, n >= 3).

  1. void set_translation(mt[] values)
  2. void set_translation(Matrix mat)
    struct Matrix(type, int rows_, int cols_)
    @safe pure nothrow
    static if((rows == cols) && (rows >= 3))
    void
    set_translation
    if (
    (rows_ > 0) &&
    (cols_ > 0)
    )

Meta