(center: &Point<f64>, radius: f64, angle: f64)
| 31 | } |
| 32 | |
| 33 | pub fn polar2cartesian(center: &Point<f64>, radius: f64, angle: f64) -> Point<f64> { |
| 34 | let x = center.x + radius * (angle).cos(); |
| 35 | let y = center.y + radius * (angle).sin(); |
| 36 | Point::new(x, y) |
| 37 | } |
| 38 | |
| 39 | /// Rounds [value] to [places] decimal places. |
| 40 | pub fn round2places(value: f64, places: usize) -> f64 { |
no outgoing calls
no test coverage detected