-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
double == double #1
Comments
Да, работает. func == (lhs: GClusterItem,rhs: GClusterItem) -> Bool { Лог: |
еще один лог: |
Ну т.е. сравнение чисел с плавающей запятой вас не смущает? |
Антон, добрый день. Да, Вы правы. Спасибо, что указали на ошибку. С уважением, Александр Шубин
|
Здравствуйте, Александр. Пожалуйста. С уважением, |
func == (lhs: GClusterItem,rhs: GClusterItem) -> Bool {
return lhs.position.latitude == rhs.position.latitude && lhs.position.longitude == rhs.position.longitude
}
Работает?
The text was updated successfully, but these errors were encountered: