Changed datatypes to double.

The original point, rect classes were moved to the ui lib. It makes sense
to use ints for screen related coordinates and doubles for math. The only
other alternative is to use doubles for both, and we may return to that at
some point.