Mat.scale

Applies a 3D scaling to this matrix.

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

Parameters

sx T

The scale factor on the x-axis.

sy T

The scale factor on the y-axis.

sz T

The scale factor on the z-axis.

Return Value

Type: Mat!(T, N, N)

A reference to this matrix, for method chaining.

Meta