GLSharp.Util.Matrix4X4.Scale C# (CSharp) Method

Scale() public method

public Scale ( Vector3 scale ) : Matrix4X4
scale Vector3
return Matrix4X4
        public Matrix4X4 Scale(Vector3 scale)
        {
            Elements[0] *= scale.Elements[0];
            Elements[1] *= scale.Elements[0];
            Elements[2] *= scale.Elements[0];
            Elements[3] *= scale.Elements[0];
            Elements[4] *= scale.Elements[1];
            Elements[5] *= scale.Elements[1];
            Elements[6] *= scale.Elements[1];
            Elements[7] *= scale.Elements[1];
            Elements[8] *= scale.Elements[2];
            Elements[9] *= scale.Elements[2];
            Elements[10] *= scale.Elements[2];
            Elements[11] *= scale.Elements[2];

            return this;
        }