(coord: Coord)
| 224 | } |
| 225 | |
| 226 | fn from_polar(coord: Coord) -> Coord { |
| 227 | let r = coord.x; |
| 228 | let theta = coord.y; |
| 229 | coord! { x: r * f64::cos(theta), y: r * f64::sin(theta) } |
| 230 | } |
| 231 | |
| 232 | fn to_polar(coord: Coord) -> Coord { |
| 233 | let r = f64::sqrt(coord.x.powi(2) + coord.y.powi(2)); |
nothing calls this directly
no outgoing calls
no test coverage detected