首页 开发技术 其它     /    liang-barsky:Liang-Barsky剪切线算法-源码

liang-barsky:Liang-Barsky剪切线算法-源码

上传者: weixin_42121754 | 上传时间:2023/9/18 2:52:11 | 文件大小:519KB | 文件类型:ZIP
liang-barsky:Liang-Barsky剪切线算法-源码
Liang-Barsky剪线算法快速,破坏性实现。
它通过矩形裁剪2D线段。
这是对的改编,其简单性给我留下了深刻的印象。
API破坏性的vara=[-10,-10],b=[10,10];clip(a,b,[-5,-5,5,5]);//returns1-"clipped"console.log(a);//[-5,-5]console.log(b);//[5,5]无损vara=[-10,-10],b=[10,10];varan=a.slice(),bn=b.slice();clip(a,b,[-5,-5,5,5],an,bn);//returns1-"clipped"console.log(an);//[-5,-5]cons 本软件ID:14988481

文件下载

资源详情

[{"title":"(29个子文件519KB)liang-barsky:Liang-Barsky剪切线算法-源码","children":[{"title":"liang-barsky-master","children":[{"title":"benchmark.js <span style='color:#111;'>635B</span>","children":null,"spread":false},{"title":".eslintrc <span style='color:#111;'>687B</span>","children":null,"spread":false},{"title":".github","children":[{"title":"ISSUE_TEMPLATE","children":[{"title":"bug_report.md <span style='color:#111;'>834B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"liang-barsky.ts <span style='color:#111;'>1.79KB</span>","children":null,"spread":false}],"spread":true},{"title":".npmignore <span style='color:#111;'>117B</span>","children":null,"spread":false},{"title":"demo","children":[{"title":"index.html <span style='color:#111;'>355B</span>","children":null,"spread":false},{"title":"thumbnail.png <span style='color:#111;'>102.87KB</span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'>1.40KB</span>","children":null,"spread":false}],"spread":true},{"title":".travis.yaml <span style='color:#111;'>563B</span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'>483B</span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"rollup.config.ts <span style='color:#111;'>1.21KB</span>","children":null,"spread":false},{"title":"tslint.json <span style='color:#111;'>81B</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>1.98KB</span>","children":null,"spread":false},{"title":"docs","children":[{"title":"index.html <span style='color:#111;'>290.20KB</span>","children":null,"spread":false},{"title":"assets","children":[{"title":"images","children":[{"title":"icons@2x.png <span style='color:#111;'>27.09KB</span>","children":null,"spread":false},{"title":"icons.png <span style='color:#111;'>9.26KB</span>","children":null,"spread":false},{"title":"widgets@2x.png <span style='color:#111;'>855B</span>","children":null,"spread":false},{"title":"widgets.png <span style='color:#111;'>480B</span>","children":null,"spread":false}],"spread":false},{"title":"js","children":[{"title":"main.js <span style='color:#111;'>148.53KB</span>","children":null,"spread":false},{"title":"search.js <span style='color:#111;'>941B</span>","children":null,"spread":false}],"spread":false},{"title":"css","children":[{"title":"main.css <span style='color:#111;'>69.04KB</span>","children":null,"spread":false},{"title":"main.css.map <span style='color:#111;'>30.10KB</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"globals.html <span style='color:#111;'>290.11KB</span>","children":null,"spread":false}],"spread":true},{"title":".editorconfig <span style='color:#111;'>211B</span>","children":null,"spread":false},{"title":"tests","children":[{"title":"index.test.ts <span style='color:#111;'>4.11KB</span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'>117B</span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'>504.26KB</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>3.57KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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