Module pasture_core::math [−][src]
Useful mathematical tools when working with point clooud data
Structs
AABB | 3D axis-aligned bounding box |
DynamicMortonIndex | 3D Morton index with a dynamic depth |
DynamicMortonIndexTooLargeError | Error for a |
MortonIndex64 | 64-bit 3D Morton index |
MortonIndex64WithDepth | 64-bit 3D Morton index with depth information. This is the more efficient, but more constraint
version of |
Octant | Wrapper type around an u8 that encodes the index of an octant within an octree. Since there are only 8 possible octants,
this type is only valid for values in |
OctantIndexOutOfBoundsError | Error type for an octant index that is out of bounds |
Enums
MortonIndexNaming | Defines different ways of turning a Morton index into a string |
Traits
Alignable | Trait for aligning a numeric value to a given byte boundary |
MinMax | Helper trait for computing minimum and maximum values for types. This is used in conjunction
with |
Functions
expand_bits_by_3 | Inserts two zero-bits before any two bits of |
reverse_bits | Reverse the bits in the given 64-bit value, turning the MSB into the LSB and vice versa |