coord_equal implementation