GRIM/EMI: Refactor graphics primitives code.
EMI: WorldToScreen returns a float representation of the screen position.