Prepare to change data type back.
Change data type from Point2f to Point2i
Change data type back to Point2f. Fix some issues.
修Data type bug fix.