(&self, other: &Point)
| 10 | } |
| 11 | |
| 12 | pub fn distance(&self, other: &Point) -> f32 { |
| 13 | let dx = self.x - other.x; |
| 14 | let dy = self.y - other.y; |
| 15 | (dx * dx + dy * dy).sqrt() |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | #[derive(Clone, Debug, Default)] |
nothing calls this directly
no outgoing calls
no test coverage detected