Matrix.translation

Returns an identity matrix with the current translation applied ( nxn matrices, n >= 3 ) ..

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

Meta