overridden the point2d equals