Skip to content
A mintetest mod adding vectors that support opperators.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.MD
api.lua
benchmarks.lua
depends.txt
init.lua
mod.conf
screenshot.png

README.MD

metavectors

A mintetest mod adding vectors that support opperators. (eg. v1 + v2)

To get the vectors use metavectors.metavector or metavectors.require("api").

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.

You can’t perform that action at this time.