diff options
author | epoch <epoch@hacking.allowed.org> | 2017-12-19 03:57:22 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2017-12-19 03:57:22 -0600 |
commit | 1069c59f786cced9a8ef7d8bd492acf2db6e1091 (patch) | |
tree | ee948771aefc3fc7e459d898fa43b7a07e735ab5 | |
parent | 81a659788768400a6e2d22b588466794d91686fc (diff) | |
download | hackvr-1069c59f786cced9a8ef7d8bd492acf2db6e1091.tar.gz hackvr-1069c59f786cced9a8ef7d8bd492acf2db6e1091.zip |
added a note to anyone wanting to fiddle with some math
-rw-r--r-- | src/math.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -36,6 +36,8 @@ c3_t rotate_c3_zr(c3_t p1,c3_t p2,radians zr) {//rotate x and y around camera ba //cos(0) = 1 //cos(90deg) = 0 //// rotate first point about second point +// if you pass (1,0),(0,0),0 it should output 1,0 +// if you pass (0,1),(0,0),0 it should output 0,1 c2_t rotate_c2(c2_t p1,c2_t p2,radians dr) { c2_t p3; real d=distance2(p1,p2); |