Matrix.scaling

static construction of a scaling matrix from an array/vector

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

Meta