Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
habedi committed Sep 29, 2024
1 parent c81394f commit 796f100
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Morton Encoding in Go

[Tests]()
[![Tests](https://github.com/habedi/morton/actions/workflows/tests.yml/badge.svg)](https://github.com/habedi/morton/actions/workflows/tests.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/habedi/morton)](https://goreportcard.com/report/github.com/habedi/morton)
[![Go Reference](https://pkg.go.dev/badge/github.com/habedi/morton.svg)](https://pkg.go.dev/github.com/habedi/morton)
[![License](https://img.shields.io/github/license/habedi/morton)](https://github.com/habedi/morton/blob/main/LICENSE)

This is a simple implementation of [Morton encoding](https://en.wikipedia.org/wiki/Z-order_curve) in Go that supports
encoding 2D and 3D integer vectors into a single dimension and decoding them back to the original vectors.
Expand Down
3 changes: 3 additions & 0 deletions assets/make_figures.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# You need to have graphviz installed to run this script
# sudo apt-get install graphviz # for Debian-based systems

# Make figures from .dot files
for f in *.dot; do
dot -Tsvg $f -o ${f%.dot}.svg
Expand Down

0 comments on commit 796f100

Please sign in to comment.