Matrix.translate

Applys a translation on the current matrix and returns this (3x3 and 4x4 matrices).

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

Meta