mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-04 04:43:57 +00:00
embeddings:: fixed xspinpush
This commit is contained in:
parent
8e004230a7
commit
d868548fa2
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user