P2 -> P2D
Refactoring P2 -> P2D for the points with double coordinates