scaleMat

Creates a not uniform 3d scale matrix

  1. M scaleMat(T s)
  2. M scaleMat(T x, T y, T z)
  3. M scaleMat(V v)
    @nogc pure nothrow
    M
    scaleMat
    (
    M = Mat4f
    V = Vec3f
    )
    (
    V v
    )
    if (
    isVector!V &&
    V.dim <= 3
    &&
    )

Parameters

v V

Vector with scale factor. If is a 2d Vector, z axis scale factor is 1 Returns a scale matrix

Meta