(lhs: &[f64], rhs: f64)
| 45 | } |
| 46 | |
| 47 | pub fn sub(lhs: &[f64], rhs: f64) -> Vec<f64> { |
| 48 | let mut out = Vec::with_capacity(lhs.len()); |
| 49 | for val in lhs.iter() { |
| 50 | out.push(val - rhs); |
| 51 | } |
| 52 | out |
| 53 | } |
| 54 | |
| 55 | pub fn get_font_size_x(max: f64) -> f32 { |
| 56 | let a = if max >= 3. { |