I plan to implement a graphics app, which I built and works in mathematica.
Graphics is extremely slow in mathematica, and the interactive part is bad.
I have programmed a lot (~500k lines) in mathematica,
but I am new to swift and metal.
The app is structurally like a Rubik cube.
The user swipes or taps, pieces built of many rectangles rotate, there is a screeching sound.
Is there a library for vector and matrix operations for swift? For metal?
(dot product, matrix times vector, matrix times matrix, transpose, determinant, etc?)
If I had to build it all myself, what would be the best way to do it? classes?
For something similar to a Rubik cube, the controller has to figure out, when the user swipes, over which cubelet he started, the move direction, etc.
Is that all computed in the swift controller part, as opposed to the metal or openGL part?