25 void init_shamrock_math_AABB(py::module &m, std::string name) {
26 py::class_<shammath::AABB<T>>(m, name.c_str())
27 .def(py::init([](f64_3 min, f64_3 max) {
28 return std::make_unique<shammath::AABB<T>>(min, max);
47 return shambase::format(
"AABB(lower={}, upper={})", aabb.
lower, aabb.
upper);
50 return shambase::format(
"AABB(lower={}, upper={})", aabb.
lower, aabb.
upper);
54 template void init_shamrock_math_AABB<f64_3>(py::module &m, std::string name);
Define the fmt formatters for sycl::vec.
Pybind11 include and definitions.
Axis-Aligned bounding box.
T lower
Lower bound of the AABB.
T upper
Upper bound of the AABB.