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
| package; | |
| import kha.FastFloat; | |
| import kha.Framebuffer; | |
| import kha.math.FastMatrix3; | |
| import kha.Scheduler; | |
| import kha.System; | |
| import js.Lib; | |
| import js.html.ImageElement; | |
| import js.html.Event; |
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
| function turn (X, Y) { | |
| // for the math, see http://www.texpaste.com/n/ev3443eo | |
| var | |
| X2 = X*X, Y2 = Y*Y, | |
| q = 1 + X2 + Y2, | |
| s = 1 - X2 - Y2, | |
| r2 = 1/(q*q), s2 = s*s, | |
| A = (s2 + 4*(Y2 - X2))*r2, B = -8*X*Y*r2, C = 4*s*X*r2, | |
| D = (s2 + 4*(X2 - Y2))*r2, E = 4*s*Y*r2, | |
| F = (s2 - 4*(X2 + Y2))*r2; |
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
| lua - Justin Donaldson | |
| https://t.co/lEy2jAfLpP | |
| externs Andy Li | |
| https://t.co/K8bqK3OkPK | |
| JTrans - | |
| https://t.co/YvWMLnijmG | |
| HaxeUI - Ian | |
| https://t.co/XbKaQSV5Jj | |
| Pistahx - Emmanuel | |
| https://t.co/PdS38n2kz8 |