{"_id":"point-line-distance","_rev":"7-02bcfc3993693f94e235bb9d58b8c277","name":"point-line-distance","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"point-line-distance","version":"0.1.0","keywords":["point-line-distance","line","point","distance","point-line","3d","geometry"],"author":{"name":"Mauricio Poppe","email":"mauricio.poppe@gmail.com"},"license":"MIT","_id":"point-line-distance@0.1.0","maintainers":[{"name":"maurizzzio","email":"mauricio.poppe@gmail.com"}],"homepage":"https://github.com/maurizzzio/point-line-distance#readme","bugs":{"url":"https://github.com/maurizzzio/point-line-distance/issues"},"dist":{"shasum":"5b02bb443893e43bed0c619301cdd6f12bd6e93d","tarball":"https://registry.npmjs.org/point-line-distance/-/point-line-distance-0.1.0.tgz","integrity":"sha512-jJSPE5n7fdV7ZocZl1IEME11fxp9ooZ7RR7kq9enb0AJX9Aj2iidpu0frzWwH/HKTK0SHrK0h+41UKHHNrXfcw==","signatures":[{"sig":"MEUCIAxtbSLqeWsixQ4W7GByI3qWJn2DYqPjICc9YJcmVR6WAiEA4nJpNEdF5t3UXlfy5Wg6FPNmQFm6cwOqPJZyWPlE+pU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js","squared.js"],"_shasum":"5b02bb443893e43bed0c619301cdd6f12bd6e93d","gitHead":"bf98a242344715948981e6b13ed7f5afa0ca6255","scripts":{"lint":"standard","test":"node test/index.js | tap-spec","start":"npm run test:watch","test:watch":"gaze 'npm test' 'test/**/*.js' 'lib/**/*.js' 'index.js'"},"_npmUser":{"name":"maurizzzio","email":"mauricio.poppe@gmail.com"},"repository":{"url":"git+https://github.com/maurizzzio/point-line-distance.git","type":"git"},"_npmVersion":"3.3.12","description":"3-dimensional point line distance","_nodeVersion":"4.2.2","dependencies":{"gl-vec3":"^1.0.3"},"devDependencies":{"tape":"^4.0.1","gaze-cli":"^0.2.0","standard":"^4.5.0","tap-spec":"^4.0.2"},"directories":{}},"1.0.0":{"name":"point-line-distance","version":"1.0.0","keywords":["point-line-distance","line","point","distance","point-line","3d","geometry"],"author":{"name":"Mauricio Poppe","email":"mauricio.poppe@gmail.com"},"license":"MIT","_id":"point-line-distance@1.0.0","maintainers":[{"name":"maurizzzio","email":"mauricio.poppe@gmail.com"}],"homepage":"https://github.com/maurizzzio/point-line-distance#readme","bugs":{"url":"https://github.com/maurizzzio/point-line-distance/issues"},"dist":{"shasum":"5f22515f31fd1d17f9a7da5ccf81928a2bf367d1","tarball":"https://registry.npmjs.org/point-line-distance/-/point-line-distance-1.0.0.tgz","integrity":"sha512-v8ikKuyqcs6nv776u6ygBzQoYg+FylS+JZDNmG/IsHpQ9ifUpshd20clVr0jI9J8WFKSOHIz/FlT3CnYVQg38A==","signatures":[{"sig":"MEUCIQCFllOlTUOqm3oWMT/CC/tAM1wAzUTWTRXl1lXjatQK1wIgHyADqeqoJmmqHHGFNh4HDhYFI+2/X1LwVDDkoE9qWqg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js","squared.js"],"_shasum":"5f22515f31fd1d17f9a7da5ccf81928a2bf367d1","gitHead":"e72206462b6fac8aa5a205815ba5471a0227ee33","scripts":{"lint":"standard","test":"node test/index.js | tap-spec","start":"npm run test:watch","test:watch":"gaze 'npm test' 'test/**/*.js' 'lib/**/*.js' 'index.js'"},"_npmUser":{"name":"maurizzzio","email":"mauricio.poppe@gmail.com"},"repository":{"url":"git+https://github.com/maurizzzio/point-line-distance.git","type":"git"},"_npmVersion":"3.3.12","description":"3-dimensional point line distance","_nodeVersion":"4.2.2","dependencies":{"gl-vec3":"^1.0.3"},"devDependencies":{"tape":"^4.0.1","gaze-cli":"^0.2.0","standard":"^4.5.0","tap-spec":"^4.0.2"},"directories":{}},"1.0.1":{"name":"point-line-distance","version":"1.0.1","description":"3-dimensional point line distance","bugs":{"url":"https://github.com/mauriciopoppe/point-line-distance/issues"},"license":"MIT","main":"index.js","author":{"name":"Mauricio Poppe","url":"https://mauriciopoppe.com"},"repository":{"type":"git","url":"git+https://github.com/mauriciopoppe/point-line-distance.git"},"keywords":["point-line-distance","line","point","distance","point-line","3d","geometry"],"dependencies":{"gl-vec3":"^1.0.3"},"devDependencies":{"tape":"^4.0.1","tap-spec":"^4.0.2","gaze-cli":"^0.2.0","standard":"^4.5.0"},"scripts":{"lint":"standard","test":"node test/index.js | tap-spec","test:watch":"gaze 'npm test' 'test/**/*.js' 'lib/**/*.js' 'index.js'","start":"npm run test:watch"},"_id":"point-line-distance@1.0.1","gitHead":"401ee7dc37baec4efd35e8d3377592afa04a21b5","homepage":"https://github.com/mauriciopoppe/point-line-distance#readme","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-20FaXAqnX4IISI9PRPddGZWjLxS6PmkODBEuKz6m7bYqbVSQvScD5VUAbe+ziCBOg3eoK4h7huinvcPzOUEdXw==","shasum":"fe905177879f0892000116c8fd471784ffaa506a","tarball":"https://registry.npmjs.org/point-line-distance/-/point-line-distance-1.0.1.tgz","fileCount":4,"unpackedSize":4014,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDv13HhZ4bWY/ifYtAM5z1Gnpy8qtd6z1JJG1nqQa100AIgQyomXqjMC6F0+PVquiam1APeslbs7bVgWi2pczfqBz8="}]},"_npmUser":{"name":"mauriciopoppe","email":"5gl9sqyff@mozmail.com"},"directories":{},"maintainers":[{"name":"maurizzzio","email":"mauricio.poppe@gmail.com"},{"name":"mauriciopoppe","email":"5gl9sqyff@mozmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/point-line-distance_1.0.1_1766773414538_0.2943800504101355"},"_hasShrinkwrap":false}},"time":{"created":"2015-11-15T06:14:28.088Z","modified":"2025-12-26T18:23:34.889Z","0.1.0":"2015-11-15T06:14:28.088Z","1.0.0":"2015-11-15T16:22:20.982Z","1.0.1":"2025-12-26T18:23:34.671Z"},"bugs":{"url":"https://github.com/mauriciopoppe/point-line-distance/issues"},"author":{"name":"Mauricio Poppe","url":"https://mauriciopoppe.com"},"license":"MIT","homepage":"https://github.com/mauriciopoppe/point-line-distance#readme","keywords":["point-line-distance","line","point","distance","point-line","3d","geometry"],"repository":{"type":"git","url":"git+https://github.com/mauriciopoppe/point-line-distance.git"},"description":"3-dimensional point line distance","maintainers":[{"name":"maurizzzio","email":"mauricio.poppe@gmail.com"},{"name":"mauriciopoppe","email":"5gl9sqyff@mozmail.com"}],"readme":"# point-line-distance \n\n[![npm][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![js-standard-style][standard-image]][standard-url]\n\nComputes the distance between a point and a line defined with any two points lying on it\n\n## Install\n\n```sh\n$ npm install --save point-line-distance\n```\n\n## Usage\n\nLet\n\n```js\nvar point = [1, 0, 1]\nvar a = [1, 2, -1]\nvar b = [2, 0, 3]\n```\n\nCompute the distance as follows\n\n```js\nvar pld = require('point-line-distance');\npld(point, a, b)  // Math.sqrt(8 / 7)\n```\n\nIf you need the squared distance require `squared` as follows\n\n```js\nvar pldSquared = require('point-line-distance/squared');\npldSquared(point, a, b)  // 8 / 7\n```\n\n## API\n\n```\npld = require('point-line-distance')\n```\n\n### `pld(point, a, b)`\n\n**params**\n\n* `point` [Array] the target point\n* `a` [Array] and `b` [Array] are two points that define a line\n\n**returns**\n\nThe distance between `point` and the line defined by `a` and `b`\n\n**throws**\n\nThrows an error when `a === b`\n\n## License\n\n2015 MIT © [Mauricio Poppe](http://maurizzzio.com)\n\n[travis-image]: https://travis-ci.org/maurizzzio/point-line-distance.svg?branch=master\n[travis-url]: https://travis-ci.org/maurizzzio/point-line-distance\n[npm-image]: https://img.shields.io/npm/v/point-line-distance.svg?style=flat\n[npm-url]: https://npmjs.org/package/point-line-distance\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat\n[standard-url]: http://standardjs.com/\n[coveralls-image]: https://coveralls.io/repos/maurizzzio/point-line-distance/badge.svg?branch=master&service=github\n[coveralls-url]: https://coveralls.io/r/maurizzzio/point-line-distance\n","readmeFilename":"README.md"}