Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompactBits21 ¶ added in v0.30.0
CompactBits21 is the inverse of expandBits
func ExpandBits21 ¶ added in v0.30.0
ExpandBits21 spreads the bits of a number so they can be interleaved Input: 00000000000000000000001011010010 Output: 001000001000001000000001000000010
Types ¶
type Encoder3D ¶
type Encoder3D struct {
// Bounds define the space that will be mapped to Morton codes
Bounds geometry.AABB
// Resolution determines the precision of the encoding (number of bits per dimension)
Resolution uint
}
Encoder3D provides 3D Morton encoding/decoding functionality for float64 coordinates
func (*Encoder3D) DecodeArray ¶
Decode converts a Morton code back to a 3D float64 point
Click to show internal directories.
Click to hide internal directories.