Matrix.translation

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

  1. Matrix translation(valueType x)
  2. Matrix translation(valueType x, valueType y)
  3. Matrix translation(valueType x, valueType y, valueType z)
    struct Matrix(type, int numCols, int numRows)
    @safe pure nothrow static
    static if(!((cols == 2) && (rows == 2)))
    static if(!((cols == 3) && (rows == 3)))
    static if((cols == 4) && (rows == 4))
    translation
    if (
    (numCols > 1) &&
    (numRows > 1)
    )
  4. Matrix translation()

Meta