inlined math for modelToViewX and modelToViewY, see #12