Last active
May 25, 2017 22:26
-
-
Save sikanrong/72c7eae839c6739eb84cb07ee9d64364 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //y = ax + c; reflection line | |
| var reflected = {}; | |
| var d = (point.x + (point.y - c)*a)/(1 + a^2); | |
| reflected.x = 2*d - point.x; | |
| reflected.y = 2*d*a - point.y + (2*c); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment