mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 00:07:10 +00:00
removed rotmatrix as it did exactly the same as cspin
This commit is contained in:
1 parent
9588dfcc50
commit
2cf6abb273
6 files changed
+34
-43
No files matched your search
+1
-1
@@ -256,7 +256,7 @@ void make_twopoint(ld& x, ld& y) {
|
||||
|
||||
hyperpoint mobius(hyperpoint h, ld angle, ld scale = 1) {
|
||||
h = perspective_to_space(h * scale, 1, gcSphere);
|
||||
h = rotmatrix(angle * degree, 1, 2) * h;
|
||||
h = cspin(1, 2, angle * degree) * h;
|
||||
return space_to_perspective(h, 1) / scale;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user