Skip to content

tidwall/curve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

curve

C library for generating Hilbert and Z-order curves.

#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>

#include "curve.h"

int main(void) {
    double window[] = { -180, -90, 180, 90 };
    uint32_t hilbert = curve_hilbert(-33, -112, window);
    uint32_t zcurve = curve_z(-33, -112, window);
    printf("hilbert: %" PRIu32 "\n", hilbert);
    printf("z-curve: %" PRIu32 "\n", zcurve);
}

This code is released into the public domain.

About

Hilbert and Z-order curve library for C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages