Celeritas  0.5.0-56+6b053cd
Functions
BoundingBoxIO.json.cc File Reference
#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. More...
 
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 &)
 

Function Documentation

◆ from_json()

template<class T >
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.