TypeScript types for thejustinwalsh's defold-xmath, a Defold Math eXtention Library that avoids allocations.
For use with TS-Defold and TypeScriptToLua.
The documentation comments are copied from Defold's vmath library with some modifications; they may not be 100% accurate to xmath's implementation.
- Create a TS-Defold project
- Add defold-xmath to your Defold project
- Import these types
yarn add git+https://[email protected]/thinknathan/tsd-xmath-types.git#^1.0.0 -D
# or
npm install git+https://[email protected]/thinknathan/tsd-xmath-types.git#^1.0.0 --save-dev
- Add
tsd-xmath
totypes
intsconfig.json
{
"compilerOptions": {
"types": [
+ "tsd-xmath",
],
}
}
- Add
node_modules/@types
totypeRoots
intsconfig.json
if it's not already there
{
"compilerOptions": {
"typeRoots": [
+ "node_modules/@types",
],
}
}
TypeScript ❤️ Defold
MIT
Comments are adapted from Defold's code comments.