Rust中 的无触发 2d 视线算法

上传者: 38334677 | 上传时间: 2022-06-11 18:06:17 | 文件大小: 7.96MB | 文件类型: ZIP
在 2D 视线算法的许多示例中,都使用了三角函数等昂贵的运算。此外,为了简单起见,某些方法在其中故意不准确。在这里,我们给出了一种算法,它不会伪造数字,并且只使用基本的算术:加法、减法、乘法和除法。这并不是要取代现有的算法,甚至在实践中更有效。 该算法在 Rust 中实现。除了算法本身之外, repo 还包含一个使用ggez编写的简单示例应用程序,可以通过克隆 repo 和使用 cargo 来下载和运行。main.rs包含应用程序的代码,sight.rs包含视线算法,并space.rs包含使其工作所需的结构和辅助方法。 我鼓励你在这里查看这本书

文件下载

资源详情

[{"title":"( 94 个子文件 7.96MB ) Rust中 的无触发 2d 视线算法","children":[{"title":"2d-line-of-sain","children":[{"title":".gitignore <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"Cargo.toml <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"css","children":[{"title":"print.css <span style='color:#111;'> 757B </span>","children":null,"spread":false},{"title":"chrome.css <span style='color:#111;'> 9.11KB </span>","children":null,"spread":false},{"title":"general.css <span style='color:#111;'> 3.82KB </span>","children":null,"spread":false},{"title":"variables.css <span style='color:#111;'> 5.80KB </span>","children":null,"spread":false}],"spread":true},{"title":"ayu-highlight.css <span style='color:#111;'> 947B </span>","children":null,"spread":false},{"title":"Rays.html <span style='color:#111;'> 22.57KB </span>","children":null,"spread":false},{"title":"favicon.svg <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"Angle.html <span style='color:#111;'> 22.28KB </span>","children":null,"spread":false},{"title":"elasticlunr.min.js <span style='color:#111;'> 17.63KB </span>","children":null,"spread":false},{"title":".nojekyll <span style='color:#111;'> 72B </span>","children":null,"spread":false},{"title":"searchindex.json <span style='color:#111;'> 277.34KB </span>","children":null,"spread":false},{"title":"Introduction.html <span style='color:#111;'> 12.75KB </span>","children":null,"spread":false},{"title":"fonts","children":[{"title":"open-sans-v17-all-charsets-300.woff2 <span style='color:#111;'> 43.31KB </span>","children":null,"spread":false},{"title":"open-sans-v17-all-charsets-italic.woff2 <span style='color:#111;'> 40.11KB </span>","children":null,"spread":false},{"title":"fonts.css <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"open-sans-v17-all-charsets-700italic.woff2 <span style='color:#111;'> 39.84KB </span>","children":null,"spread":false},{"title":"source-code-pro-v11-all-charsets-500.woff2 <span style='color:#111;'> 57.75KB </span>","children":null,"spread":false},{"title":"open-sans-v17-all-charsets-600.woff2 <span style='color:#111;'> 43.88KB </span>","children":null,"spread":false},{"title":"open-sans-v17-all-charsets-600italic.woff2 <span style='color:#111;'> 41.13KB </span>","children":null,"spread":false},{"title":"open-sans-v17-all-charsets-800.woff2 <span style='color:#111;'> 43.49KB </span>","children":null,"spread":false},{"title":"OPEN-SANS-LICENSE.txt <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"open-sans-v17-all-charsets-800italic.woff2 <span style='color:#111;'> 39.86KB </span>","children":null,"spread":false},{"title":"open-sans-v17-all-charsets-700.woff2 <span style='color:#111;'> 43.93KB </span>","children":null,"spread":false},{"title":"open-sans-v17-all-charsets-300italic.woff2 <span style='color:#111;'> 39.70KB </span>","children":null,"spread":false},{"title":"open-sans-v17-all-charsets-regular.woff2 <span style='color:#111;'> 42.22KB </span>","children":null,"spread":false},{"title":"SOURCE-CODE-PRO-LICENSE.txt <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"Final.html <span style='color:#111;'> 24.73KB </span>","children":null,"spread":false},{"title":"mark.min.js <span style='color:#111;'> 16.91KB </span>","children":null,"spread":false},{"title":"book.js <span style='color:#111;'> 23.76KB </span>","children":null,"spread":false},{"title":"highlight.js <span style='color:#111;'> 132.22KB </span>","children":null,"spread":false},{"title":"favicon.png <span style='color:#111;'> 5.55KB </span>","children":null,"spread":false},{"title":"searchindex.js <span style='color:#111;'> 277.38KB </span>","children":null,"spread":false},{"title":"tomorrow-night.css <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"Problem.html <span style='color:#111;'> 12.71KB </span>","children":null,"spread":false},{"title":"images","children":[{"title":"problem.png <span style='color:#111;'> 106.47KB </span>","children":null,"spread":false},{"title":"applyingnormalvectors.png <span style='color:#111;'> 105.92KB </span>","children":null,"spread":false},{"title":"unit_vectors.png <span style='color:#111;'> 90.75KB </span>","children":null,"spread":false},{"title":"ulhalfplanes.png <span style='color:#111;'> 77.69KB </span>","children":null,"spread":false},{"title":"unsorted.png <span style='color:#111;'> 133.77KB </span>","children":null,"spread":false},{"title":"example.png <span style='color:#111;'> 87.61KB </span>","children":null,"spread":false},{"title":"justendpoints.png <span style='color:#111;'> 159.15KB </span>","children":null,"spread":false},{"title":"background.svg <span style='color:#111;'> 211.17KB </span>","children":null,"spread":false},{"title":"final.png <span style='color:#111;'> 153.47KB </span>","children":null,"spread":false},{"title":"problemvectors.png <span style='color:#111;'> 106.89KB </span>","children":null,"spread":false},{"title":"projection.png <span style='color:#111;'> 77.34KB </span>","children":null,"spread":false},{"title":"sightregion.png <span style='color:#111;'> 62.31KB </span>","children":null,"spread":false},{"title":"example.gif <span style='color:#111;'> 2.35MB </span>","children":null,"spread":false},{"title":"lotsofrays.png <span style='color:#111;'> 147.96KB </span>","children":null,"spread":false},{"title":"normalvectors.png <span style='color:#111;'> 129.80KB </span>","children":null,"spread":false},{"title":"sorted.png <span style='color:#111;'> 134.03KB </span>","children":null,"spread":false}],"spread":false},{"title":"highlight.css <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"searcher.js <span style='color:#111;'> 18.04KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 12.74KB </span>","children":null,"spread":false},{"title":"404.html <span style='color:#111;'> 9.37KB </span>","children":null,"spread":false},{"title":"FontAwesome","children":[{"title":"css","children":[{"title":"font-awesome.css <span style='color:#111;'> 30.27KB </span>","children":null,"spread":false}],"spread":false},{"title":"fonts","children":[{"title":"fontawesome-webfont.svg <span style='color:#111;'> 433.96KB </span>","children":null,"spread":false},{"title":"fontawesome-webfont.ttf <span style='color:#111;'> 161.67KB </span>","children":null,"spread":false},{"title":"fontawesome-webfont.woff2 <span style='color:#111;'> 75.35KB </span>","children":null,"spread":false},{"title":"fontawesome-webfont.eot <span style='color:#111;'> 161.86KB </span>","children":null,"spread":false},{"title":"fontawesome-webfont.woff <span style='color:#111;'> 95.73KB </span>","children":null,"spread":false},{"title":"FontAwesome.ttf <span style='color:#111;'> 161.67KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"clipboard.min.js <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false},{"title":"print.html <span style='color:#111;'> 54.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"book","children":[{"title":"book.toml <span style='color:#111;'> 181B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"Rays.md <span style='color:#111;'> 7.10KB </span>","children":null,"spread":false},{"title":"Angle.md <span style='color:#111;'> 5.85KB </span>","children":null,"spread":false},{"title":"SUMMARY.md <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"images","children":[{"title":"problem.png <span style='color:#111;'> 106.47KB </span>","children":null,"spread":false},{"title":"applyingnormalvectors.png <span style='color:#111;'> 105.92KB </span>","children":null,"spread":false},{"title":"unit_vectors.png <span style='color:#111;'> 90.75KB </span>","children":null,"spread":false},{"title":"ulhalfplanes.png <span style='color:#111;'> 77.69KB </span>","children":null,"spread":false},{"title":"unsorted.png <span style='color:#111;'> 133.77KB </span>","children":null,"spread":false},{"title":"example.png <span style='color:#111;'> 87.61KB </span>","children":null,"spread":false},{"title":"justendpoints.png <span style='color:#111;'> 159.15KB </span>","children":null,"spread":false},{"title":"background.svg <span style='color:#111;'> 211.17KB </span>","children":null,"spread":false},{"title":"final.png <span style='color:#111;'> 153.47KB </span>","children":null,"spread":false},{"title":"problemvectors.png <span style='color:#111;'> 106.89KB </span>","children":null,"spread":false},{"title":"projection.png <span style='color:#111;'> 77.34KB </span>","children":null,"spread":false},{"title":"sightregion.png <span style='color:#111;'> 62.31KB </span>","children":null,"spread":false},{"title":"example.gif <span style='color:#111;'> 2.35MB </span>","children":null,"spread":false},{"title":"lotsofrays.png <span style='color:#111;'> 147.96KB </span>","children":null,"spread":false},{"title":"normalvectors.png <span style='color:#111;'> 129.80KB </span>","children":null,"spread":false},{"title":"sorted.png <span style='color:#111;'> 134.03KB </span>","children":null,"spread":false}],"spread":false},{"title":"Final.md <span style='color:#111;'> 9.03KB </span>","children":null,"spread":false},{"title":"Introduction.md <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"Problem.md <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"space.rs <span style='color:#111;'> 7.72KB </span>","children":null,"spread":false},{"title":"sight.rs <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"main.rs <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"benches","children":[{"title":"comparisons.rs <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"Cargo.lock <span style='color:#111;'> 72.69KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明