mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-04 14:30:35 +00:00
intra:: fix
This commit is contained in:
parent
5f4e03b1da
commit
f7bcadab50
@ -71,10 +71,10 @@ hyperpoint portal_data::to_poco(hyperpoint h) const {
|
|||||||
|
|
||||||
hyperpoint portal_data::from_poco(hyperpoint h) const {
|
hyperpoint portal_data::from_poco(hyperpoint h) const {
|
||||||
if(prod && kind == 1) {
|
if(prod && kind == 1) {
|
||||||
ld d = h[2];
|
ld xd = h[2];
|
||||||
h[2] = 1;
|
h[2] = 1;
|
||||||
auto z = product_decompose(h).first;
|
auto z = product_decompose(h).first;
|
||||||
return h * exp(d+d-z);
|
return h * exp(d+xd-z);
|
||||||
}
|
}
|
||||||
else if(prod && kind == 0) {
|
else if(prod && kind == 0) {
|
||||||
auto h0 = h;
|
auto h0 = h;
|
||||||
|
Loading…
Reference in New Issue
Block a user