CSharpGL.IBoundingBoxHelper.Min C# (CSharp) Method

Min() private static method

Gets all minimum parts from two vec3.
private static Min ( vec3 a, vec3 b ) : vec3
a vec3
b vec3
return vec3
        private static vec3 Min(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;
        }