AABB myBox({1, 2, 3}, {4, 5, 6}); // create an AABB with minimum point (1, 2, 3) and maximum point (4, 5, 6) Vec3f maxValues = myBox.getMax(); // get the maximum values of the box std::cout << "Max X: " << maxValues.x << ", Max Y: " << maxValues.y << ", Max Z: " << maxValues.z << std::endl;
AABB myBox({-1, -1, -1}, {1, 1, 1}); // create an AABB centered at the origin with length 2 in each direction Vec3f maxValues = myBox.getMax(); // get the maximum values of the box std::cout << maxValues.length() << std::endl; // print the length of the vector (should be sqrt(3))This example creates an AABB centered at the origin with length 2 in each direction, and then gets the maximum values of the box along each axis. The output will be the length of the resulting vector, which should be sqrt(3). It is difficult to determine which package library this function comes from without more context. It is possible that it is part of a math or geometry library, but it could also be part of a game engine or other software.