euclideanDistance method
Implementation
double euclideanDistance(NaLocation from) {
return sqrt(pow(latitude! - from.latitude!, 2) +
pow(longitude! - from.longitude!, 2));
}
double euclideanDistance(NaLocation from) {
return sqrt(pow(latitude! - from.latitude!, 2) +
pow(longitude! - from.longitude!, 2));
}