morton:高效且正确的 Z-Order 寻址

时间:2021-06-17 10:13:03
【文件属性】:
文件名称:morton:高效且正确的 Z-Order 寻址
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-17 10:13:03
Go 莫顿 与欧几里得网格之间的高效编码和解码。 天啊,这听起来像*一样自大。 你可能知道你是否需要这个东西。 它在 Go 中。 例子 package main import ( "log" "math/rand" "github.com/markchadwick/morton" ) func main () { // First, pick two random numbers and log them to stdout x0 := uint32 ( rand . Int31 ()) y0 := uint32 ( rand . Int31 ()) log . Printf ( "x0: %d" , x0 ) log . Printf ( "y0: %d" , y0 ) // Encode these numbers as a single index on a
【文件预览】:
morton-master
----morton_test.go(2KB)
----fuzz_test.go(885B)
----morton.go(4KB)
----example()
--------simple.go(574B)
----Gomfile(114B)
----README.md(925B)
----stripe_test.go(1KB)
----.gitignore(9B)

网友评论