Replaced Point with PointF everywhere