{"_id":"compare-angle","_rev":"8-f3c481bf259a5511a21b7155a889baab","name":"compare-angle","description":"Compares two angles with a common edge","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.0":{"name":"compare-angle","version":"0.0.0","description":"Compares two angles with a common edge","main":"cmpangle.js","directories":{"test":"test"},"dependencies":{"robust-product":"^0.0.0","robust-orientation":"^1.0.1","robust-sum":"^0.0.3","signum":"^0.0.0","two-sum":"^0.1.0"},"devDependencies":{"tape":"~2.12.3"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/compare-angle.git"},"keywords":["compare","angle","robust","exact","arithmetic","triangle","geometry","euclidean","plane"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/compare-angle/issues"},"homepage":"https://github.com/mikolalysenko/compare-angle","_id":"compare-angle@0.0.0","dist":{"shasum":"44d0a7caa96fe07a48d55d28bc2415d8e9a4bf60","tarball":"https://registry.npmjs.org/compare-angle/-/compare-angle-0.0.0.tgz","integrity":"sha512-XVcLJxn0jucNj2gkD5+sbep05Y7prY5U3wjTTJKkSWYEgmowyd1KBg9Eq15lxnW0soPogMYU804LGUa0oT4ygw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDA+GZ7T6Gw/HxkjBjT9Po00wJBWQOsKlLbistRsgzqAiBYL4BpSL8CVqKWePkSP6rf9LOTMAjTrmJP9akb4nCVUw=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]},"0.0.1":{"name":"compare-angle","version":"0.0.1","description":"Compares two angles with a common edge","main":"cmpangle.js","directories":{"test":"test"},"dependencies":{"robust-product":"^0.0.0","robust-orientation":"^1.0.1","robust-sum":"^0.0.3","signum":"^0.0.0","two-sum":"^0.1.0"},"devDependencies":{"tape":"~2.12.3"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/compare-angle.git"},"keywords":["compare","angle","robust","exact","arithmetic","triangle","geometry","euclidean","plane"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/compare-angle/issues"},"homepage":"https://github.com/mikolalysenko/compare-angle","_id":"compare-angle@0.0.1","dist":{"shasum":"b9d9bab28fdbb9ff8be5cbf3897de1f63c42f981","tarball":"https://registry.npmjs.org/compare-angle/-/compare-angle-0.0.1.tgz","integrity":"sha512-P8pOySHWrA3+vEiDkuKrZL1DE7T+unBkE1XNyZPK7Q5dPU3rRUM6cKii3otG1L3aIP/bgYeWMGxLKt7miZ5s2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDX4ney/24zJ3zkrs0HE3xVdERjXknH4hSJEcgoVcHVVAIhAP92JMSRVc/hZCJEyio1w5I/n5IyREAdoxzMk8XbR5mz"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]},"1.0.1":{"name":"compare-angle","version":"1.0.1","description":"Compares two angles with a common edge","main":"cmpangle.js","directories":{"test":"test"},"dependencies":{"robust-product":"^1.0.0","robust-orientation":"^1.0.2","robust-sum":"^1.0.0","signum":"^0.0.0","two-sum":"^1.0.0"},"devDependencies":{"tape":"~2.12.3"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/compare-angle.git"},"keywords":["compare","angle","robust","exact","arithmetic","triangle","geometry","euclidean","plane"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/compare-angle/issues"},"homepage":"https://github.com/mikolalysenko/compare-angle","_id":"compare-angle@1.0.1","dist":{"shasum":"a4eb63416ea3c747fc6bd6c8b63668b4de4fa129","tarball":"https://registry.npmjs.org/compare-angle/-/compare-angle-1.0.1.tgz","integrity":"sha512-adM1/bpLFQFquh0/Qr5aiOPuztoga/lCf2Z45s+Oydgzf18F3wBSkdHmcHMeig0bD+dDKlz52u1rLOAOqiyE5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7rLjA9oJOcbIAtwS6y9gykoIFHNrSGiZah2+9GYl0AQIhAJabfh5UGyCEaS68kdu0OWxz4jNKbJ80XJaf+b12Tl4U"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]}},"readme":"compare-angle\n=============\nLet A, B, C and D be four points in the plan.  Then of the pair of angles ABC and ABD, determine which is larger.\n\n```\n  C\n  *      D\n   \\     *\n    \\ABC/\n     \\ / ABD\n      *-------------*\n      B             A\n```\n\nExample\n=======\n\n```javascript\nvar compareAngle = require(\"compare-angle\")\n\nvar A = [2, 0]\nvar B = [0, 0]\nvar C = [-1, 2]\nvar D = [1, 1]\n\nconsole.log(compareAngle(A, B, C, D),  compareAngle(A, B, D, C))\n```\n\nOutput:\n\n```\n1   -1\n```\n\nInstall\n=======\n\n```\nnpm install compare-angle\n```\n\nAPI\n===\n\n#### `require(\"compare-angle\")(a, b, c, d)`\nCompares the angles ABC and ABD to determine which is greater.\n\n* `a`, `b` are the base points of the angle\n* `c` is the end of the first angle\n* `d` is the end of the second angle\n\n**Returns** A number indicating which angle is larger\n\n* `+1` if angle ABC is greater than angle ABD\n* `0` if the angles are equal\n* `-1` if angle ABD is greater than angle ABC\n\nCredits\n=======\n(c) 2014 Mikola Lysenko. MIT License","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"time":{"modified":"2022-06-13T19:39:51.670Z","created":"2014-04-20T22:44:29.368Z","0.0.0":"2014-04-20T22:44:29.368Z","0.0.1":"2014-04-20T22:58:16.725Z","1.0.1":"2014-04-28T22:30:39.395Z"},"homepage":"https://github.com/mikolalysenko/compare-angle","keywords":["compare","angle","robust","exact","arithmetic","triangle","geometry","euclidean","plane"],"repository":{"type":"git","url":"git://github.com/mikolalysenko/compare-angle.git"},"author":{"name":"Mikola Lysenko"},"bugs":{"url":"https://github.com/mikolalysenko/compare-angle/issues"},"license":"MIT","readmeFilename":"README.md"}