Mat.scale

Applies a uniform 2D scaling to this matrix on all axes.

  1. Mat!(T, N, N) scale(T sx, T sy)
  2. Mat!(T, N, N) scale(T s)
    struct Mat(T, size_t rowCount, size_t colCount)
    ref
    static if(rowCount == colCount)
    static if(N == 3 && isFloatingPoint!T)
    Mat!(T, N, N)
    scale
    (
    T s
    )
    if (
    isNumeric!T &&
    rowCount > 0
    &&
    colCount > 0
    )
  3. Mat!(T, N, N) scale(T sx, T sy, T sz)
  4. Mat!(T, N, N) scale(T s)

Parameters

s T

The scale factor to apply.

Return Value

Type: Mat!(T, N, N)

A reference to this matrix, for method chaining.

Meta