This mostly all translates to math equations, and with data oriented design a computer can crunch through this stuff extremely quickly. But this kind of stuff is why C++ is still popular - determinism is really important to get consistent performance at this low level. Also shader code is quite restrictive in order to keep performance up.
Edit: replaced 'driven' with 'oriented' - thanks Narishma
Edit: replaced 'driven' with 'oriented' - thanks Narishma