18 #ifndef __H__OCULAR_ENGINE_MATH_MORTON_CODE__H__
19 #define __H__OCULAR_ENGINE_MATH_MORTON_CODE__H__
21 #include "MathCommon.hpp"
38 template<
typename T>
class Vector3;
62 static uint64_t
calculate(
float x,
float y,
float z);
75 static uint64_t
calculate(uint32_t x, uint32_t y, uint32_t z);
92 static void calculate(std::vector<
Vector3<float>>
const& vectors, std::vector<uint64_t>& mortonCodes,
bool areInRange =
false,
bool sortCodes =
true);
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
static void getTransformFactors(std::vector< Vector3< float >> const &vectors, float &scaleFactor, float &offsetFactor)
Definition: MortonCode.cpp:208
static uint64_t calculate(Vector3< float > vector)
Definition: MortonCode.cpp:146
Definition: MortonCode.hpp:40