CodingTrain / CodingTrain/Coding-Challenges

145_Ray_Casting - optimice performance by using square distance

オープン
#15 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
189
フォーク
86
PR マージ指標
30日以内にマージされた PR はありません

説明

when using dist only for compare, its better to use the `square distance`. Because otherwise quare-root needs to be calculated which is much more cpu heavy.

https://github.com/CodingTrain/Coding-Challenges/blob/2a9d68112b1aa80cbd5aa303f1d97dda7b045fde/145_Ray_Casting/P5/particle.js#L29

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。