Title: 145_Ray_Casting - optimice performance by using square distance · Issue #15 · CodingTrain/Coding-Challenges · GitHub
Open Graph Title: 145_Ray_Casting - optimice performance by using square distance · Issue #15 · CodingTrain/Coding-Challenges
X Title: 145_Ray_Casting - optimice performance by using square distance · Issue #15 · CodingTrain/Coding-Challenges
Description: 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. Coding-Challenges/145_Ray_Casting/P5/particle.js Line 29 in 2a9d681 const d = p5.V...
Open Graph Description: 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. Coding-Challenges/145_Ray_Casting/P5/parti...
X Description: 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. Coding-Challenges/145_Ray_Casting/P5/parti...
Opengraph URL: https://github.com/CodingTrain/Coding-Challenges/issues/15
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"145_Ray_Casting - optimice performance by using square distance","articleBody":"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.\r\n\r\nhttps://github.com/CodingTrain/Coding-Challenges/blob/2a9d68112b1aa80cbd5aa303f1d97dda7b045fde/145_Ray_Casting/P5/particle.js#L29","author":{"url":"https://github.com/strech345","@type":"Person","name":"strech345"},"datePublished":"2024-02-29T12:25:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/15/Coding-Challenges/issues/15"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c5c339cd-e205-f776-743f-7fcf228c4a83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC66:19A1E9:83E59B5:AF50800:696E0707 |
| html-safe-nonce | 01ec459c987751f9d60432507a54ec8734a17e670abdf68a88755af4541ba946 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzY2OjE5QTFFOTo4M0U1OUI1OkFGNTA4MDA6Njk2RTA3MDciLCJ2aXNpdG9yX2lkIjoiMjc0MjQ1MTE0MDAxMjI5NTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a890b10f06714df0505df9ed239c7edf49f542037d4ee1a42ebe5f73e1a1eea5 |
| hovercard-subject-tag | issue:2161138188 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/CodingTrain/Coding-Challenges/15/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67984a190dd2691185db571ee19d8d5d123d8f830497fde5ff00cdedf28737c1/CodingTrain/Coding-Challenges/issues/15 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67984a190dd2691185db571ee19d8d5d123d8f830497fde5ff00cdedf28737c1/CodingTrain/Coding-Challenges/issues/15 |
| og:image:alt | 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. Coding-Challenges/145_Ray_Casting/P5/parti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | strech345 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b5131b207ddd175abf059a848d5f4302ec0606b02211b989013be49cf08593e |
| turbo-cache-control | no-preview |
| go-import | github.com/CodingTrain/Coding-Challenges git https://github.com/CodingTrain/Coding-Challenges.git |
| octolytics-dimension-user_id | 18553964 |
| octolytics-dimension-user_login | CodingTrain |
| octolytics-dimension-repository_id | 460560825 |
| octolytics-dimension-repository_nwo | CodingTrain/Coding-Challenges |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 460560825 |
| octolytics-dimension-repository_network_root_nwo | CodingTrain/Coding-Challenges |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8590a63bfc8093b241930ca57d536c9a50f9680 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width