Matrix.scale

Constructs 2d scale matrix

  1. MatType scale(T[2] s, ...)
    struct Matrix(T, size_t H, size_t W)
    static
    static if(!(isSquare && W == 2 && isFloatingPoint!T))
    static if(isSquare && W == 3 && isFloatingPoint!T)
    scale
    (
    T[2] s
    ,)
    if (
    isNumeric!T &&
    W > 0
    &&
    H > 0
    )
  2. MatType scale(T[3] v, ...)

Meta