product:: made cpush0 work correctly

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:14 +02:00
parent f0d9ae226f
commit 6e599112c2
+4
View File
@@ -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;