Fixed wrong usage of bitwise or
Added some double precision methods
Moved convert method to utils class
Added method to interpret mouse dragging in double coordinates