CSharpGL.glm.scale C# (CSharp) Method

scale() public static method

Applies a scale transformation to matrix m by vector v.
public static scale ( mat3 m, vec2 v ) : mat3
m mat3 The matrix to transform.
v vec2 The vector to scale by.
return mat3
        public static mat3 scale(mat3 m, vec2 v)
        {
            mat3 result = m;
            result.col0 = m.col0 * v.x;
            result.col1 = m.col1 * v.y;
            result.col2 = m.col2;

            return result;
        }

Same methods

glm::scale ( CSharpGL.mat4 m, vec3 v ) : CSharpGL.mat4