This replaces annoying calculations on C++-side and eases the implementation of 2D geometry batch rendering a lot.