Fixed a rendering bug where the size of axis tripods (for selected objects) was not rendered correctly when the near plane was set to anything but 1 m.
In the process, a few helper methods was introduced for often used calculations (such as calculating the height of the viewport in meters).