{"name":"vec3","version":"0.1.9","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":{"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":"380206869759c541e08a1884a7c313077dc6ae59","bugs":{"url":"https://github.com/PrismarineJS/node-vec3/issues"},"homepage":"https://github.com/PrismarineJS/node-vec3#readme","_id":"vec3@0.1.9","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-ylPYzKnnN3fe9ihah0apHGuYG/uQrmzjsHpwOWs6YaItgBMYi/YUahvQ5elZfjonfZwIIgXB7CtwQXIwhOmn6Q==","shasum":"3bdd3c85eb1e8a16f77cee782c02b1cd8a1dc0f1","tarball":"http://registry-npm.ywwl.com/vec3/download/vec3-0.1.9.tgz","fileCount":13,"unpackedSize":34076,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZjDhbEg+2k4/ueGLJYQqAKxS3SPvxbR/ebE0f7ebVhwIhAKZAQlFRNrkEr1ccp+QU8GpM3KyG72ESeZtv6tN3yMEz"}],"size":8259,"noattachment":false,"key":"/vec3/-/vec3-0.1.9.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.9_1704024530108_0.6088401748106422"},"_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":1704024530339,"_cnpm_publish_time":1704024530339,"dist-tags":{"latest":"0.2.0"}}