SPH
|
#include "objects/geometry/Box.h"
Go to the source code of this file.
Functions | |
NAMESPACE_SPH_BEGIN Size | morton (const Vector &v) |
Calculates a 30-bit Morton code for the given vector located within the unit cube [0,1]. More... | |
Size | morton (const Vector &v, const Box &box) |
Calculates the Morton code for a vector in specified box. More... | |
NAMESPACE_SPH_BEGIN Size morton | ( | const Vector & | v | ) |
Calculates a 30-bit Morton code for the given vector located within the unit cube [0,1].
Input vector must be inside [0,1] cube, checked by assert.
Definition at line 15 of file Morton.cpp.
Calculates the Morton code for a vector in specified box.
Definition at line 29 of file Morton.cpp.