Replace FloatPosition with Android's PointF.