mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-17 14:17:10 +00:00
removed rotmatrix as it did exactly the same as cspin
This commit is contained in:
@@ -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