{"id":42392176,"url":"https://github.com/sebastianlipponer/zorder_knn","last_synced_at":"2026-01-28T00:17:55.114Z","repository":{"id":48349658,"uuid":"363666643","full_name":"sebastianlipponer/zorder_knn","owner":"sebastianlipponer","description":"Floating point morton order comparison operator.","archived":false,"fork":false,"pushed_at":"2024-05-01T10:08:44.000Z","size":28,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T21:12:34.674Z","etag":null,"topics":["floating-point","ieee754","morton","morton-order","space-filling-curves","z-order"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianlipponer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-02T14:10:46.000Z","updated_at":"2024-05-01T10:08:40.000Z","dependencies_parsed_at":"2022-08-24T14:49:45.020Z","dependency_job_id":null,"html_url":"https://github.com/sebastianlipponer/zorder_knn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sebastianlipponer/zorder_knn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianlipponer%2Fzorder_knn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianlipponer%2Fzorder_knn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianlipponer%2Fzorder_knn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianlipponer%2Fzorder_knn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianlipponer","download_url":"https://codeload.github.com/sebastianlipponer/zorder_knn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianlipponer%2Fzorder_knn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28828588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T23:29:49.665Z","status":"ssl_error","status_checked_at":"2026-01-27T23:25:58.379Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["floating-point","ieee754","morton","morton-order","space-filling-curves","z-order"],"created_at":"2026-01-28T00:17:54.449Z","updated_at":"2026-01-28T00:17:55.109Z","avatar_url":"https://github.com/sebastianlipponer.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zorder_knn\n[![Build badge](https://github.com/sebastianlipponer/zorder_knn/actions/workflows/build.yml/badge.svg)](https://github.com/sebastianlipponer/zorder_knn/actions?workflow=build) [![license](https://img.shields.io/github/license/sebastianlipponer/zorder_knn)](https://github.com/sebastianlipponer/zorder_knn/blob/master/COPYING.MIT)\n\nzorder_knn is a C++ header-only library that implements a floating point morton order comparison operator\u003csup\u003e1\u003c/sup\u003e for n-dimensional points.\n\n## Build\n\nBefore running CMake, run either build-extern.cmd or build-extern.sh to download and build the necessary external dependencies in the .extern directory. You may skip this step if you don't want to run the unit tests.\n\n## Usage\n\n```\n#include \u003czorder_knn/less.hpp\u003e\n\nconstexpr std::size_t n = 2;\nusing Point = std:array\u003cfloat, n\u003e;\nstd::vector\u003cPoint\u003e pts;\n// ...\nstd::sort(pts.begin(), pts.end(), zorder_knn::Less\u003cPoint, n\u003e());\n```\n\n## Example\n\n![random](http://sebastianlipponer.github.io/zorder_knn/example_random.svg)\n![morton](http://sebastianlipponer.github.io/zorder_knn/example_morton.svg)\n\n_2000 random 2d points whose order is given by a path from start (blue) to end (red). **Left**: random order. **Right**: morton order._\n\n## References\n\n[1] M. Connor and P. Kumar, \"Fast construction of k-nearest neighbor graphs for point clouds,\" in IEEE Transactions on Visualization and Computer Graphics, vol. 16, no. 4, pp. 599-608, July-Aug. 2010, doi: 10.1109/TVCG.2010.9.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianlipponer%2Fzorder_knn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianlipponer%2Fzorder_knn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianlipponer%2Fzorder_knn/lists"}