mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-16 22:57:38 +00:00
embeddings:: fixed xspinpush
This commit is contained in:
@@ -957,7 +957,7 @@ EX hyperpoint xspinpush0(ld alpha, ld x) {
|
|||||||
EX transmatrix xspinpush(ld dir, ld dist) {
|
EX transmatrix xspinpush(ld dir, ld dist) {
|
||||||
if(embedded_plane) {
|
if(embedded_plane) {
|
||||||
geom3::light_flip(true);
|
geom3::light_flip(true);
|
||||||
transmatrix T = spin(dir) * xpush(dist) * spin(-dir);
|
transmatrix T = cspin(0, 1, dir) * xpush(dist) * cspin(0, 1, -dir);
|
||||||
geom3::light_flip(false);
|
geom3::light_flip(false);
|
||||||
return cgi.emb->base_to_actual(T);
|
return cgi.emb->base_to_actual(T);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user