Matrix.translate

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

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

Meta