CSharpGL.IBoundingBoxHelper.Max C# (CSharp) Method

Max() private static method

Gets all maximum parts from two vec3.
private static Max ( vec3 a, vec3 b ) : vec3
a vec3
b vec3
return vec3
        private static vec3 Max(vec3 a, vec3 b)
        {
            vec3 result = a;
            if (result.x < b.x) { result.x = b.x; }
            if (result.y < b.y) { result.y = b.y; }
            if (result.z < b.z) { result.z = b.z; }

            return result;
        }