|
Orrery
A GPU-accelerated N-body gravitational simulator
|
The cube that encloses a configuration. More...
#include <orrery/solvers/morton.hpp>
Public Member Functions | |
| core::Vec3 | centre () const noexcept |
Public Attributes | |
| core::Vec3 | origin |
| The corner with the lowest coordinate on every axis. | |
| core::Real | size {} |
| The length of one side. | |
The cube that encloses a configuration.
A cube rather than the tight bounding box, because the octree that follows halves each axis at every level and cells that are cubes at the root stay cubes all the way down. The opening criterion in octree.hpp compares one cell size against one distance, and a cell with three different sizes would leave the criterion to choose between them.
| core::Real orrery::solvers::BoundingCube::size {} |
The length of one side.
Zero only for a configuration whose particles are all at one point, or for an empty one.