|
Celeritas 0.7.0-dev.195+develop.9f96e13e6
|
#include "BoundingBoxIO.json.hh"#include <cmath>#include <limits>#include "corecel/cont/ArrayIO.json.hh"#include "corecel/cont/Range.hh"Functions | |
| template<class T > | |
| void | celeritas::from_json (nlohmann::json const &j, BoundingBox< T > &bbox) |
| Read a bounding box from a JSON file. | |
| template<class T > | |
| void | celeritas::to_json (nlohmann::json &j, BoundingBox< T > const &bbox) |
| Write a bounding box to a JSON file. | |
| template void | celeritas::from_json (nlohmann::json const &, BoundingBox< float > &) |
| template void | celeritas::to_json (nlohmann::json &, BoundingBox< float > const &) |
| template void | celeritas::from_json (nlohmann::json const &, BoundingBox< double > &) |
| template void | celeritas::to_json (nlohmann::json &, BoundingBox< double > const &) |
| void celeritas::from_json | ( | nlohmann::json const & | j, |
| BoundingBox< T > & | bbox | ||
| ) |
Read a bounding box from a JSON file.
A bounding box is a pair of lower/upper points, with the exception of a "null" (enclosing no points) bounding box.