The following code fails:
let morton = try MortonCode<UInt128>(UInt64.max, UInt64.max)
This is because internally Int is used to track the maximum coordinate size, which is 64-bits. The maximum value allowed in a 128-bit Morton Code is a single 128-bit value.
The following code fails:
This is because internally
Intis used to track the maximum coordinate size, which is 64-bits. The maximum value allowed in a 128-bit Morton Code is a single 128-bit value.