morton-java

Morton Pack/Unpack Library

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.gojuno.morton
ArtifactId

ArtifactId

morton-java
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

morton-java
Morton Pack/Unpack Library
Project URL

Project URL

https://github.com/gojuno/morton-java
Source Code Management

Source Code Management

https://github.com/gojuno/morton-java

Download morton-java

How to add to project

<!-- https://jarcasting.com/artifacts/com.gojuno.morton/morton-java/ -->
<dependency>
    <groupId>com.gojuno.morton</groupId>
    <artifactId>morton-java</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.gojuno.morton/morton-java/
implementation 'com.gojuno.morton:morton-java:1.0.1'
// https://jarcasting.com/artifacts/com.gojuno.morton/morton-java/
implementation ("com.gojuno.morton:morton-java:1.0.1")
'com.gojuno.morton:morton-java:jar:1.0.1'
<dependency org="com.gojuno.morton" name="morton-java" rev="1.0.1">
  <artifact name="morton-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.gojuno.morton', module='morton-java', version='1.0.1')
)
libraryDependencies += "com.gojuno.morton" % "morton-java" % "1.0.1"
[com.gojuno.morton/morton-java "1.0.1"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Morton Pack/Unpack Library

Basics

Check wikipedia for details.

Example

import com.gojuno.morton.Morton64;

Morton64 m = new Morton64(2, 32); // 2 dimenstions 32 bits each
long code = m.pack(13, 42);       // pack two values
long[] values = m.unpack(code);   // should get back 13 and 42
com.gojuno.morton

Juno Inc.

Juno is a fresh approach to ride sharing

Versions

Version
1.0.1
1.0.0