fn adjust_coordinates(&self, mut x: i16, mut y: i16) -> (i16, i16) {
        x += self.origin.0;
        y += self.origin.1;

        if self.invert_y {
            y = self.height() as i16 - y - 1
        };

        (x, y)
    }
// Adjust in two ways:
//
// - recenter according to (origin_x, origin_y)
// - turn the y coordinate upside down, if set (Sdl starts at top left; bottom left is more intuitive)
//
Adjust in two ways:
recenter according to (origin_x, origin_y)
turn the y coordinate upside down, if set (Sdl starts at top left; bottom left is more intuitive)
Adjust in two ways : recenter according to ( origin_x origin_y ) turn the y coordinate upside down if set ( Sdl starts at top left ; bottom left is more intuitive )
fn adjust_coordinates(&self, mut x: i16, mut y: i16) -> (i16, i16) {
        x += self.origin.0;
        y += self.origin.1;
        if self.invert_y {
            y = self.height() as i16 - y - 1
        };
        (x, y)
    }
fn adjust_coordinates ( & self , mut x : i16 , mut y : i16 ) -> ( i16 , i16 ) { x += self . origin . 0 ; y += self . origin . 1 ; if self . invert_y { y = self . height ( ) as i16 - y - 1 } ; ( x , y ) }
Adjust in two ways:
 recenter according to (origin_x, origin_y)
 turn the y coordinate upside down, if set (Sdl starts at top left; bottom left is more intuitive)
Adjust in two ways : recenter according to ( origin_x origin_y ) turn the y coordinate upside down if set ( Sdl starts at top left ; bottom left is more intuitive )
&self
x
i16
y
i16