Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thefox6/metavectors
A mintetest mod adding vectors that support opperators.
https://github.com/thefox6/metavectors
Last synced: 14 days ago
JSON representation
A mintetest mod adding vectors that support opperators.
- Host: GitHub
- URL: https://github.com/thefox6/metavectors
- Owner: theFox6
- License: mit
- Created: 2019-06-09T11:53:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-20T16:54:25.000Z (about 1 year ago)
- Last Synced: 2024-10-27T20:25:16.298Z (2 months ago)
- Language: Lua
- Size: 449 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# metavectors
[![luacheck][luacheck badge]][luacheck workflow]
A mintetest mod adding vectors that support opperators.
(eg. v1 + v2)To get the vectors use `metavectors.metavector` or `metavectors.require("api")`.
```lua
local metavector = metavectors.require("api")
local v1 = mvector.new(x,y,z)
local v2 = mvector.new(aVector)
local distance = v1-v2
```##benchmarks
To see the performance of metavectors compared to minetest's vector utils install the benchmark_engine mod.
The benchmarks "metavectors:metavectors" and "metavectors:standardvectors" will then be added.[luacheck badge]: https://github.com/theFox6/metavectors/workflows/luacheck/badge.svg
[luacheck workflow]: https://github.com/theFox6/metavectors/actions?query=workflow%3Aluacheck