高效的3D-Morton编解码

Morton3D的Python项目详细描述


摩顿3d(Homepage

3D Morton编码和解码的高效pythonic实现。在

安装

pip安装:

pip install Morton3D==1.0.1

从源安装:

^{pr2}$

用法

importMorton3Dm=Morton3D.zorder(9)# 9 is the bit lengthmortonValue,mortonBinary=m.Morton(51,20,50)# encoding, (51,20,50) is the 3D integer coordinate.coordinate=m.deMorton(192681,0)# decoding, given the mortonValue, return the 3D coordinate# decoding, given the morton value in bit representation, return the 3D coordinate, 1 is the flag.coordinate=m.deMorton('000000000101111000010101001',1)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java楼梯的最大高度   java Jackson从1.7.1更新到2.8.6 JsonTypeInfo子类型反序列化   Spring WebApp中的java JPA异常处理   java在SwingWorker(doInBackground)中从WorkerThread调用多个方法?   java Android Studio构建到jar   java是添加多个按钮组的更有效方法   java MySQL JDBC连接池最大大小   java如何防止元素<Integer>变成元素<Object>   Java:处理大型XML文件提取数据而不编写状态自动机?   SpringBoot和React Web应用程序中CAS的java重定向问题   需要java算法方面的帮助吗   java在JDK 16中使用PowerMock   java异常错误本机方法签名   在Java Android中将JSON映射到数组/对象   如何打开一个窗口。java程序中的dat文件   java应用程序引擎+Maven+热插拔   java Moxy的getValueByXPath为除根元素以外的所有元素返回null