fix stray keypress
This commit is contained in:
parent
61e6706448
commit
b5013d1540
|
@ -92,7 +92,7 @@ struct Point(f32, f32);
|
||||||
|
|
||||||
impl instant_distance::Point for Point {
|
impl instant_distance::Point for Point {
|
||||||
fn distance(&self, other: &Self) -> f32 {
|
fn distance(&self, other: &Self) -> f32 {
|
||||||
// Euclidean distance metricØ
|
// Euclidean distance metric
|
||||||
((self.0 - other.0).powi(2) + (self.1 - other.1).powi(2)).sqrt()
|
((self.0 - other.0).powi(2) + (self.1 - other.1).powi(2)).sqrt()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue