Celeritas  0.5.0-56+6b053cd
Functions
BoundingBoxIO.json.hh File Reference
#include <nlohmann/json.hpp>
#include "BoundingBox.hh"
This graph shows which files directly or indirectly include this file:

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.
 

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.