product:: made cpush0 work correctly

This commit is contained in:
Zeno Rogue 2019-08-19 10:32:23 +02:00
parent f0d9ae226f
commit 6e599112c2
1 changed files with 4 additions and 0 deletions

View File

@ -991,6 +991,10 @@ EX transmatrix transpose(transmatrix T) {
#if HDR
inline hyperpoint cpush0(int c, ld x) {
hyperpoint h = Hypc;
if(c == 2 && prod) {
h[2] = exp(x);
return h;
}
h[LDIM] = cos_auto(x);
h[c] = sin_auto(x);
return h;