Skip to content

Encoding a 128-bit Morton Code doesn't work #3

Description

@mattcox

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions