{"_id":"robust-orientation","_rev":"567047","name":"robust-orientation","description":"Exactly computes the orientation of a tuple of points","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"time":{"modified":"2024-06-26T05:57:25.000Z","created":"2013-10-22T22:37:25.277Z","1.2.1":"2021-08-04T23:20:08.514Z","1.1.3":"2014-06-02T23:02:03.321Z","1.1.2":"2014-05-18T00:44:32.419Z","1.1.1":"2014-05-07T02:23:42.995Z","1.1.0":"2014-05-07T02:20:33.953Z","1.0.2":"2014-04-28T22:29:00.079Z","1.0.1":"2014-03-29T19:51:21.489Z","1.0.0":"2013-11-07T18:01:35.601Z","0.0.0":"2013-10-22T22:37:25.277Z"},"users":{},"author":{"name":"Mikola Lysenko"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"versions":{"1.2.1":{"name":"robust-orientation","version":"1.2.1","description":"Exactly computes the orientation of a tuple of points","main":"orientation.js","directories":{"test":"test"},"dependencies":{"robust-scale":"^1.0.2","robust-sum":"^1.0.0","two-product":"^1.0.2","robust-subtract":"^1.0.0"},"devDependencies":{"tape":"^2.12.0"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"keywords":["robust","orientation","point","predicate","geometry"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"e85e56f590c79f34e86ceb38612dd915bde8dc36","homepage":"https://github.com/mikolalysenko/robust-orientation#readme","_id":"robust-orientation@1.2.1","_nodeVersion":"14.15.3","_npmVersion":"6.14.10","dist":{"integrity":"sha512-FuTptgKwY6iNuU15nrIJDLjXzCChWB+T4AvksRtwPS/WZ3HuP1CElCm1t+OBfgQKfWbtZIawip+61k7+buRKAg==","shasum":"f6c2b00a5df5f1cb9597be63a45190f273899361","tarball":"http://registry-npm.ywwl.com/robust-orientation/download/robust-orientation-1.2.1.tgz","fileCount":6,"unpackedSize":14547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCyCoCRA9TVsSAnZWagAAxsIQAIX92BicTFVMk88jpLNb\nhasUDKTCdGqwT56quyXvgr8gLV2CxeImu5C363bZ+dEKklopEwr5evs9S3VF\nq2cwaO3e85nStpAyZIKpmNxE5oo08UhXcDMPil4vzY/vXwIGVrkwovKRBMln\nCawYtJi4rT96QqPsLAbwHBAL5By5zxXpfmHcJ0Z2UcglitlzruHclcRFn3Ot\nehDJapE4rH06njWJSwMmsARxX0LMkeMRgj7ClQ86Pdy8JxDBkgNnD7xk0T7e\nze++ilxXDxVX6uSI7lmp2UzFT/sPcthYTVqGQl/BY/msrsU/wLFjyKYh+kLQ\nBGeGPnXmboXuPOO2Jsllop2mWynTuVRuIN8dIw4V1pwAZCCua9Xqwoui8GPV\nfFUFvZ9Bfijd67QLd3Jn9g+Eklmee4ufJgJnZko24Zsqt9kOVeM6rnbiAB0m\nBCQnxYD3yAxVM9TeEOxjxQfvneePbX19kCIMDU4h8MgI9gf/mpdNY0k+U/96\niqZa066ZoPinEyu6OFO/gJfYVbYBXtDE2bIrOogBqlUBybkxDR4KoUBj+qV/\nBMybPvcUXHk9022J++gRAXv9i1TaVkd47kDV23YoQ2eT02lD+WOd6GQwmDqt\nxcmueAvmhHJ+aLgZWq4v8xMYh2r4cLUYkCOCDazxeo1LQKeAT/3CcX7VIUBG\n2zE/\r\n=h3v/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvqgbd7X9HmdqmMyNynN3Yvx9AgbpU0lll5dRQkFscjAiAzpRjUENpHxdH6ZkzrbiobABLQXG49ZJQRa2TWLX1QAA=="}],"size":3930,"noattachment":false,"key":"/robust-orientation/-/robust-orientation-1.2.1.tgz"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/robust-orientation_1.2.1_1628119208387_0.8196205977802526"},"_hasShrinkwrap":false,"publish_time":1628119208514,"_cnpm_publish_time":1628119208514},"1.1.3":{"name":"robust-orientation","version":"1.1.3","description":"Exactly computes the orientation of a tuple of points","main":"orientation.js","directories":{"test":"test"},"dependencies":{"robust-scale":"^1.0.2","robust-sum":"^1.0.0","two-product":"^1.0.2","robust-subtract":"^1.0.0"},"devDependencies":{"tape":"^2.12.0"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"keywords":["robust","orientation","point","predicate","geometry"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"homepage":"https://github.com/mikolalysenko/robust-orientation","_id":"robust-orientation@1.1.3","dist":{"shasum":"daff5b00d3be4e60722f0e9c0156ef967f1c2049","tarball":"http://registry-npm.ywwl.com/robust-orientation/download/robust-orientation-1.1.3.tgz","integrity":"sha512-Hvhxfpt8ADzho9rbALFQjEl6FhHiatXIsbC/i7KwjxRAcD+N7WMTGOxJ3e6EbEbwUWo8bEgbtt4zElEq+pQ0zA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBIAzMg7c3bbTGNn5jpEDASnlRB/LY9aG7dBVDJKtB4tAiEAhHTmtZetH6GM+z9NPia72WTwbR1R1req8YmXVr6eq20="}],"size":4172,"noattachment":false,"key":"/robust-orientation/-/robust-orientation-1.1.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"publish_time":1401750123321,"_cnpm_publish_time":1401750123321},"1.1.2":{"name":"robust-orientation","version":"1.1.2","description":"Exactly computes the orientation of a tuple of points","main":"orientation.js","directories":{"test":"test"},"dependencies":{"robust-scale":"^1.0.2","robust-sum":"^1.0.0","two-product":"^1.0.2","robust-subtract":"^1.0.0"},"devDependencies":{"tape":"^2.12.0"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"keywords":["robust","orientation","point","predicate","geometry"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"homepage":"https://github.com/mikolalysenko/robust-orientation","_id":"robust-orientation@1.1.2","dist":{"shasum":"a5575513b2f11f2dc7dbaf946ed03d9e4928583e","tarball":"http://registry-npm.ywwl.com/robust-orientation/download/robust-orientation-1.1.2.tgz","integrity":"sha512-vjpRb313N7IQuso98S5w7yjMa2uBFNtGyIWRIE6ZGOFr66LhdvhA73McbJCBA7d/a4x/yh1Ac6hEC38b89m04g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWGp65myj5KM2+U/QFP6EJvpCYhxJPbupCcEbEW3w4nAiAiYjXxm7nGUdboNRHDibjcKru3aJt7rFGuBukyu61Ftw=="}],"size":3903,"noattachment":false,"key":"/robust-orientation/-/robust-orientation-1.1.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"publish_time":1400373872419,"_cnpm_publish_time":1400373872419},"1.1.1":{"name":"robust-orientation","version":"1.1.1","description":"Exactly computes the orientation of a tuple of points","main":"orientation.js","directories":{"test":"test"},"dependencies":{"robust-scale":"^1.0.2","robust-sum":"^1.0.0","two-product":"^1.0.2","robust-subtract":"^1.0.0"},"devDependencies":{"tape":"^2.12.0"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"keywords":["robust","orientation","point","predicate","geometry"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"homepage":"https://github.com/mikolalysenko/robust-orientation","_id":"robust-orientation@1.1.1","dist":{"shasum":"030f6f921b8833a9e3cf6508471d73aa5892635d","tarball":"http://registry-npm.ywwl.com/robust-orientation/download/robust-orientation-1.1.1.tgz","integrity":"sha512-UZyd1oxw9tNJ0RHbA+3iy64rQXRgN2nJnc2/lD8BWc4SetXF9LYnQaYYojtzeC2f/D9UM56Byu/fxQoQhjaVjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAae0PR8Q4U3U+I4T3tt94cWKM4SxyFxME3+m6QZQqrwIhAKsAc9AtLWNMVF01hnZ9a8VaLZfX21QExXCcSse6y1Nf"}],"size":3864,"noattachment":false,"key":"/robust-orientation/-/robust-orientation-1.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"publish_time":1399429422995,"_cnpm_publish_time":1399429422995},"1.1.0":{"name":"robust-orientation","version":"1.1.0","description":"Exactly computes the orientation of a tuple of points","main":"orientation.js","directories":{"test":"test"},"dependencies":{"robust-scale":"^1.0.2","robust-sum":"^1.0.0","two-product":"^1.0.2","robust-subtract":"^1.0.0"},"devDependencies":{"tape":"^2.12.0"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"keywords":["robust","orientation","point","predicate","geometry"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"homepage":"https://github.com/mikolalysenko/robust-orientation","_id":"robust-orientation@1.1.0","dist":{"shasum":"1a62b88431395fd7c1526601be6f1ad59de168c9","tarball":"http://registry-npm.ywwl.com/robust-orientation/download/robust-orientation-1.1.0.tgz","integrity":"sha512-vJRGr+UU1x9q1uHiuQq/ApmI2B7ETEhKo07yuxPWxpj8eCJLGTdiqCZqqfYITGR7hYhQrQc1VepHUls0bjGdJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzNELu1kqFlgi7USeZ8sAYmwkvv0iP8zGjdn1wV/9KgwIhAIS/+zTY1QSLB+R2euKHn1DhFvDxjRElCtKsZDXMKX5w"}],"size":3871,"noattachment":false,"key":"/robust-orientation/-/robust-orientation-1.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"publish_time":1399429233953,"_cnpm_publish_time":1399429233953},"1.0.2":{"name":"robust-orientation","version":"1.0.2","description":"Exactly computes the orientation of a tuple of points","main":"orientation.js","directories":{"test":"test"},"dependencies":{"robust-scale":"^1.0.0","robust-sum":"^1.0.0","two-product":"^1.0.0","robust-subtract":"^1.0.0"},"devDependencies":{"tape":"^2.12.0"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"keywords":["robust","orientation","point","predicate","geometry"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"homepage":"https://github.com/mikolalysenko/robust-orientation","_id":"robust-orientation@1.0.2","dist":{"shasum":"a9f9bef2b9d642b77954ca8a279a6dfb6520701f","tarball":"http://registry-npm.ywwl.com/robust-orientation/download/robust-orientation-1.0.2.tgz","integrity":"sha512-fflVRJ5SSKALnhY2cWKOK6bkkLG9YRoHJfwGj8a6QBQFctviwTD0Di2XrCrGy6E/GZWoXfkjNgR2LwQ7ddgIZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGejjlC8gdiwAqTANKkIx5NgXdHd3u8jhEoIvOj+DJDoAiBq68YhbGI1w0EdTfFCuUXmN5K1BlbFBaO8GvZJnRlD+w=="}],"size":3567,"noattachment":false,"key":"/robust-orientation/-/robust-orientation-1.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"publish_time":1398724140079,"_cnpm_publish_time":1398724140079},"1.0.1":{"name":"robust-orientation","version":"1.0.1","description":"Exactly computes the orientation of a tuple of points","main":"orientation.js","directories":{"test":"test"},"dependencies":{"robust-scale":"^0.0.3","robust-sum":"^0.0.2","two-product":"^0.0.0","robust-subtract":"^0.0.0"},"devDependencies":{"tap":"~0.4.4","tape":"^2.12.0"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"keywords":["robust","orientation","point","predicate","geometry"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"homepage":"https://github.com/mikolalysenko/robust-orientation","_id":"robust-orientation@1.0.1","dist":{"shasum":"c8f162aa10b967c5b5cedf6a8875ea090f844ff6","tarball":"http://registry-npm.ywwl.com/robust-orientation/download/robust-orientation-1.0.1.tgz","integrity":"sha512-5Z0qGKB/6zBfqMrzwfyrQCOHrgbDAhzh1RqjaN0Vvygn2L0aP0qNEvU2RueyllSLv05Q4F2/UjMx9snKzsK3jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAVh1qtQZnued3oh8mHjRxdgfhNuctpMJ+ZM+QWTReMBAiEAmrXu0/EpieLRnYoJwdF9EyUYKx3Ugi8BhznLSSNbR44="}],"size":3574,"noattachment":false,"key":"/robust-orientation/-/robust-orientation-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"publish_time":1396122681489,"_cnpm_publish_time":1396122681489},"1.0.0":{"name":"robust-orientation","version":"1.0.0","description":"Exactly computes the orientation of a tuple of points","main":"orientation.js","directories":{"test":"test"},"dependencies":{"robust-scale":"~0.0.3","robust-sum":"~0.0.2","two-product":"~0.0.0"},"devDependencies":{"tape":"~2.0.0","tap":"~0.4.4"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"keywords":["robust","orientation","point","predicate","geometry"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"_id":"robust-orientation@1.0.0","dist":{"shasum":"cb8f70264a0efd85355db52c9cd1f7e9ac0cf27c","tarball":"http://registry-npm.ywwl.com/robust-orientation/download/robust-orientation-1.0.0.tgz","integrity":"sha512-x/zDNzriKHfyPXVPropHIKt4UtBRkIl2ffiKLIOwEy3krd8z4pZiNwu3Z+fzQ1Kr9tTD4gkNxrn8UsHBPA2HJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIbvrssoKKTYyd/TOix4gEYZv/9U5E4+YNd7/16EYXcgIhAMWB3h0/Vk8rJelskU7au2qc1HSzNEw0VOI0T3H5Ga57"}],"size":3569,"noattachment":false,"key":"/robust-orientation/-/robust-orientation-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"publish_time":1383847295601,"_cnpm_publish_time":1383847295601},"0.0.0":{"name":"robust-orientation","version":"0.0.0","description":"Exactly computes the orientation of a tuple of points","main":"orientation.js","directories":{"test":"test"},"dependencies":{"robust-scale":"~0.0.3","robust-sum":"~0.0.2","two-product":"~0.0.0"},"devDependencies":{"tape":"~2.0.0","tap":"~0.4.4"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/robust-orientation.git"},"keywords":["robust","orientation","point","predicate","geometry"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"_id":"robust-orientation@0.0.0","dist":{"shasum":"d9769aa5b1b35b0722969b4f1eee4a6002af1c1d","tarball":"http://registry-npm.ywwl.com/robust-orientation/download/robust-orientation-0.0.0.tgz","integrity":"sha512-W4hZE/xtyOvO37c3EISMo7n2sxI7AzHux+D8Oy/jqXDlABO2QiD102Wbxi+90GoE5UgGA+MxsVutBHtZlTSwGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBS0Pb+vS7f8v3wKAstsdzHSNLoGv+8gi6pa7Edz1JJuAiEA4w+o7Fy6KjpBS3H3fOfY+Pu8snYOabXRGJzmvkZxp6w="}],"size":2520,"noattachment":false,"key":"/robust-orientation/-/robust-orientation-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"publish_time":1382481445277,"_cnpm_publish_time":1382481445277}},"readme":"robust-orientation\n==================\nRobust orientation test for n-simplices.  Based on the work of Jonathan Shewchuk:\n\n* Shewchuk, J.  [\"Adaptive precision floating point arithmetic predicates for computational geometry\"](http://www.cs.cmu.edu/~quake/robust.html)\n\nThis implementation is robust in the sense that the answers returned are exact, but it is not fully adaptive.  Basically an initial test is computed, and if the accuracy of this is too low then an exact version of the test is executed.  Compared to Shewchuk's original C code this is slower, but eventually I hope to make improvements that bring the performance closer in line to his version.\n\n[![testling badge](https://ci.testling.com/mikolalysenko/robust-orientation.png)](https://ci.testling.com/mikolalysenko/robust-orientation)\n\n[![build status](https://secure.travis-ci.org/mikolalysenko/robust-orientation.png)](http://travis-ci.org/mikolalysenko/robust-orientation)\n\n# Example\n\n```javascript\nvar orientation = require(\"robust-orientation\")\n\nconsole.log(orientation([0, 0], [1e-64, 0], [0, 1]))\n```\n\n# Install\n\n```\nnpm install robust-orientation\n```\n\n# API\n\n```javascript\nvar orient = require(\"robust-orientation\")\n```\n\n### `orient(p0, p1, p2, ...)`\nExactly computes the orientation of a collection of (n+1) points in n-dimensions.\n\n* `p0,p1,p2,...` is a list of points\n\n**Returns** The orientation of the point set:\n* `<0` if the tuple of points is positively oriented\n* `>0` if the tuple of points is negatively oriented\n* `=0` if the points are coplanar\n\n**Note** For up to 5 points, you can directly call an optimized orientation routine, thus avoiding an extra dispatch/switch statement by calling `orient[d]`, where `d` is the number of points.  Eg.\n\n```javascript\norient[3](p0, p1, p2) === orient(p0, p1, p2)\n```\n\n## Credits\n(c) 2013 Mikola Lysenko. MIT License","_attachments":{},"homepage":"https://github.com/mikolalysenko/robust-orientation#readme","bugs":{"url":"https://github.com/mikolalysenko/robust-orientation/issues"},"license":"MIT"}