{"name":"vec3","version":"0.1.10","description":"3d vector math with good unit tests","main":"index.js","types":"index.d.ts","scripts":{"test":"npm run test-js && npm run test-types","test-js":"mocha --reporter spec","test-types":"tsd","pretest":"npm run lint","lint":"standard","fix":"standard --fix"},"keywords":["point"],"exports":{"types":"./index.d.ts","require":"./index.js","import":"./wrapper.mjs"},"author":{"name":"Andrew Kelley"},"license":"BSD","devDependencies":{"mocha":"^10.0.0","standard":"^17.0.0","tsd":"^0.25.0"},"dependencies":{},"tsd":{"directory":"test"},"repository":{"type":"git","url":"git+https://github.com/PrismarineJS/node-vec3.git"},"gitHead":"0e571deb0d892d0ddc9f4612ec937ae113c343be","bugs":{"url":"https://github.com/PrismarineJS/node-vec3/issues"},"homepage":"https://github.com/PrismarineJS/node-vec3#readme","_id":"vec3@0.1.10","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-Sr1U3mYtMqCOonGd3LAN9iqy0qF6C+Gjil92awyK/i2OwiUo9bm7PnLgFpafymun50mOjnDcg4ToTgRssrlTcw==","shasum":"939aa046ad75c08556abde6be57170cf5e691bc6","tarball":"http://registry-npm.ywwl.com/vec3/download/vec3-0.1.10.tgz","fileCount":13,"unpackedSize":34260,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEIpz5Se4frlN7q+KZxCSayWHBv0iFbiZx2IG9vheUQPAiEAsJGgCcZ2c7KANnP74OqkCrmr9T8GKAlkhxLz9mNkvcU="}],"size":8320,"noattachment":false,"key":"/vec3/-/vec3-0.1.10.tgz"},"_npmUser":{"name":"rom1504","email":"romain.rom1@gmail.com"},"directories":{},"maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"},{"name":"superjoe","email":"andrew@ziglang.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vec3_0.1.10_1704586830992_0.4183444522040045"},"_hasShrinkwrap":false,"readme":"# vec3\n[![NPM version](https://img.shields.io/npm/v/vec3.svg)](http://npmjs.com/package/vec3)\n[![Build Status](https://github.com/PrismarineJS/node-vec3/workflows/CI/badge.svg)](https://github.com/PrismarineJS/node-vec3/actions?query=workflow%3A%22CI%22)\n\n3D vector math with robust unit tests.\n\n## Usage\n\n```js\nvar v = require('vec3');\n\nvar v1 = v(1, 2, 3);\nconsole.log(v1); // prints \"(1, 2, 3)\"\nvar v2 = v1.offset(0, 0, 1);\nconsole.log(v2); // prints \"(1, 2, 4)\"\n```\n\nOr:\n\n```js\nvar Vec3 = require('vec3').Vec3;\n\nvar v1 = new Vec3(1, 2, 3);\n// etc...\n```\n\nMore available functions are listed below in Test Coverage.\n\n## Test Coverage\n\n```\n  v()\n    ✔ no args\n    ✔ x, y, z\n    ✔ array\n    ✔ object\n    ✔ string coords\n    ✔ deserialize\n    ✔ invalid deserialize\n\n  vec3\n    ✔ isZero\n    ✔ at\n    ✔ xz\n    ✔ xy\n    ✔ yz\n    ✔ xzy\n    ✔ rounded\n    ✔ round\n    ✔ floored\n    ✔ floor\n    ✔ offset\n    ✔ translate\n    ✔ plus\n    ✔ minus\n    ✔ scaled\n    ✔ abs\n    ✔ distanceTo\n    ✔ distanceSquared\n    ✔ equals\n    ✔ toString\n    ✔ clone\n    ✔ add\n    ✔ subtract\n    ✔ multiply\n    ✔ divide\n    ✔ set\n    ✔ modulus\n    ✔ volume\n    ✔ min\n    ✔ max\n    ✔ update\n    ✔ norm\n    ✔ dot\n    ✔ cross\n    ✔ unit\n    ✔ normalize\n    ✔ scale\n    ✔ xyDistanceTo\n    ✔ xzDistanceTo\n    ✔ yzDistanceTo\n    ✔ innerProduct\n    ✔ manhattanDistanceTo\n    ✔ toArray\n\n  50 passing (14ms)\n```\n\nMore functions welcome in the form of pull requests.\n\n## History\n\nSee [History](HISTORY.md)\n","publish_time":1704586831239,"_cnpm_publish_time":1704586831239,"dist-tags":{"latest":"0.2.0"}}