(coordinates: PosArgs<ArgIntoFloat>)
| 230 | |
| 231 | #[pyfunction] |
| 232 | fn hypot(coordinates: PosArgs<ArgIntoFloat>) -> f64 { |
| 233 | let coords = ArgIntoFloat::vec_into_f64(coordinates.into_vec()); |
| 234 | pymath::math::hypot(&coords) |
| 235 | } |
| 236 | |
| 237 | #[pyfunction] |
| 238 | fn dist(p: Vec<ArgIntoFloat>, q: Vec<ArgIntoFloat>, vm: &VirtualMachine) -> PyResult<f64> { |