Skip to content

An injective mapping of vectors to integers in lua.

License

Notifications You must be signed in to change notification settings

IAmSegfault/N3N

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

N3N

An injective mapping of integer vectors to integers in lua.

Maximum values are (-17,-17,-17) to (18,18,18) for 3 dimensional mappings and (-27, -27) to (28, 28) for 2 dimensional mappings. The maximum absolute value of the magic number is 68719476735.

How to use:

  1. Git clone into your project directory.
  2. Set magic to a magic number of your choosing.
  3. injection = require("N3N.Injection")
  4. n = injection.map(x,y,z)

About

An injective mapping of vectors to integers in lua.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages