Matrix.scale

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

  1. Matrix scale(mt x, mt y)
  2. Matrix scale(mt x, mt y, mt z)
  3. void scale(mt[] values)
  4. void scale(Matrix mat)
  5. Matrix scale()
    struct Matrix(type, int rows_, int cols_)
    @safe pure nothrow
    static if((rows == cols) && (rows >= 3))
    scale
    ()
    if (
    (rows_ > 0) &&
    (cols_ > 0)
    )

Meta