【文件属性】:
文件名称:hexgrid-java:六角网格
文件大小:59KB
文件格式:ZIP
更新时间:2021-05-12 07:54:04
Java
六角网格
基本
抽象表面上的可配置十六进制网格。
例子
import com.gojuno.morton.Morton64 ;
import com.gojuno.hexgrid.* ;
HexGrid grid = new HexGrid ( Orientation . FLAT , new Point ( 0 , 0 ), new Point ( 20 , 10 ), new Morton64 ( 2 , 32 ));
Hex hex = grid . hexAt( new Point ( 50 , 50 ));
long code = grid . hexToCode(hex);
Hex restoredHex = grid . hexFromCode(code);
Hex [] neighbors = grid . hexNeighbors(hex, 2 );
Region reg
【文件预览】:
hexgrid-java-master
----.gitignore(35B)
----gradle()
--------wrapper()
----pom.xml(1KB)
----build.gradle(1KB)
----README.org(601B)
----gradlew.bat(2KB)
----gradlew(5KB)
----LICENSE(1KB)
----src()
--------test()
--------main()
----.travis.yml(302B)
----settings.gradle(34B)