fn fix_y(y: f64) -> f64 {
    // Invert y coordinate, since SVG uses the top left as 0 coordinate,
    // while the IBB uses the bottom left as 0 coordinate.
    let yy = (IBB_HEIGHT as f64) - y;

    if yy < 0.0 {
        0.0
    } else if yy > (IBB_HEIGHT as f64) {
        IBB_HEIGHT as f64
    } else {
        yy
    }
}
/// Invert and clamp y coordinate.
Invert and clamp y coordinate.
Invert and clamp y coordinate .
fn fix_y(y: f64) -> f64 {
    // Invert y coordinate, since SVG uses the top left as 0 coordinate,
    // while the IBB uses the bottom left as 0 coordinate.
    let yy = (IBB_HEIGHT as f64) - y;
    if yy < 0.0 {
        0.0
    } else if yy > (IBB_HEIGHT as f64) {
        IBB_HEIGHT as f64
    } else {
        yy
    }
}
fn fix_y ( y : f64 ) -> f64 { // Invert y coordinate, since SVG uses the top left as 0 coordinate, // while the IBB uses the bottom left as 0 coordinate. let yy = ( IBB_HEIGHT as f64 ) - y ; if yy < 0.0 { 0.0 } else if yy > ( IBB_HEIGHT as f64 ) { IBB_HEIGHT as f64 } else { yy } }
Invert and clamp y coordinate.
Invert and clamp y coordinate .
y
f64
y
f64