https://github.com/agentcooper/sight-rays
https://github.com/agentcooper/sight-rays
canvas game line-intersection
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/agentcooper/sight-rays
- Owner: agentcooper
- Created: 2016-05-15T10:09:42.000Z (about 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-05-15T16:42:26.000Z (about 10 years ago)
- Last Synced: 2025-01-13T05:29:57.548Z (over 1 year ago)
- Topics: canvas, game, line-intersection
- Language: JavaScript
- Homepage: https://agentcooper.github.io/sight-rays
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Sight rays
http://agentcooper.github.io/sight-rays
Playing around with some linear algebra.
Things to read up to understand the code:
- [Inverse trigonometric functions](https://en.wikipedia.org/wiki/Inverse_trigonometric_functions)
- [Line-line intersection](https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection)
- [Parameterized segment intersection](http://stackoverflow.com/questions/563198/how-do-you-detect-where-two-line-segments-intersect/565282#565282)
Based on https://github.com/ncase/sight-and-light.