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

Translate3() public method

public Translate3 ( float x, float y, float z ) : Matrix4X4
x float
y float
z float
return Matrix4X4
        public Matrix4X4 Translate3(float x, float y, float z)
        {
            Elements[12] = Elements[0] * x + Elements[4] * y + Elements[8] * z + Elements[12];
            Elements[13] = Elements[1] * x + Elements[5] * y + Elements[9] * z + Elements[13];
            Elements[14] = Elements[2] * x + Elements[6] * y + Elements[10] * z + Elements[14];
            Elements[15] = Elements[3] * x + Elements[7] * y + Elements[11] * z + Elements[15];

            return this;
        }