- #1

- 89

- 4

## Main Question or Discussion Point

Hello,

I come accross a problem in programming and I do not find a lot of help on the internet, so I hope I can find an answer here. I have a 3D array representing a function, say f(i,j,k) and a basis function u(i,j,k). I would like to perform a general rotation of the basis function u so that I can project my function f to any axis I want.

I do not really know how to do that, I am afraid the coordinates will become non integers and I don't know how to deal with this. I was told that it is possible to interpolate with spline functions but I am not familiar with this. Is it a good solution? Are there better ways to tackle this problem?

Best regards!

I come accross a problem in programming and I do not find a lot of help on the internet, so I hope I can find an answer here. I have a 3D array representing a function, say f(i,j,k) and a basis function u(i,j,k). I would like to perform a general rotation of the basis function u so that I can project my function f to any axis I want.

I do not really know how to do that, I am afraid the coordinates will become non integers and I don't know how to deal with this. I was told that it is possible to interpolate with spline functions but I am not familiar with this. Is it a good solution? Are there better ways to tackle this problem?

Best regards!