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; }