|
PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
This file contains functions to compute Morton codes. More...
#include "pbat/HostDevice.h"#include <algorithm>#include <array>#include <cstdint>#include <type_traits>Go to the source code of this file.
Namespaces | |
| namespace | pbat |
| The main namespace of the library. | |
| namespace | pbat::geometry |
| Geometric queries, quantities and data structures. | |
Typedefs | |
| using | pbat::geometry::MortonCodeType = std::uint32_t |
| Type used to represent Morton codes. | |
Functions | |
| PBAT_HOST_DEVICE MortonCodeType | pbat::geometry::ExpandBits (MortonCodeType v) |
| Expands a 10-bit integer into 30 bits by inserting 2 zeros after each bit. | |
| template<detail::CMorton3dPoint Point> | |
| PBAT_HOST_DEVICE MortonCodeType | pbat::geometry::Morton3D (Point x) |
| Calculates a 30-bit Morton code for the given 3D point located within the unit cube [0,1]. | |
This file contains functions to compute Morton codes.