SPH
Morton.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "objects/geometry/Box.h"
4 
6 
10 Size morton(const Vector& v);
11 
13 Size morton(const Vector& v, const Box& box);
14 
NAMESPACE_SPH_BEGIN
Definition: BarnesHut.cpp:13
Object representing a three-dimensional axis-aligned box.
uint32_t Size
Integral type used to index arrays (by default).
Definition: Globals.h:16
NAMESPACE_SPH_BEGIN Size morton(const Vector &v)
Calculates a 30-bit Morton code for the given vector located within the unit cube [0,...
Definition: Morton.cpp:15
#define NAMESPACE_SPH_END
Definition: Object.h:12
Helper object defining three-dimensional interval (box).
Definition: Box.h:17