mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 08:57:39 +00:00
product:: made cpush0 work correctly
This commit is contained in:
@@ -991,6 +991,10 @@ EX transmatrix transpose(transmatrix T) {
|
|||||||
#if HDR
|
#if HDR
|
||||||
inline hyperpoint cpush0(int c, ld x) {
|
inline hyperpoint cpush0(int c, ld x) {
|
||||||
hyperpoint h = Hypc;
|
hyperpoint h = Hypc;
|
||||||
|
if(c == 2 && prod) {
|
||||||
|
h[2] = exp(x);
|
||||||
|
return h;
|
||||||
|
}
|
||||||
h[LDIM] = cos_auto(x);
|
h[LDIM] = cos_auto(x);
|
||||||
h[c] = sin_auto(x);
|
h[c] = sin_auto(x);
|
||||||
return h;
|
return h;
|
||||||
|
Reference in New Issue
Block a user