pub fn map_pixel_to_point(&self, screen_coord: Vec2d) -> Point {
        Point {
            x: screen_coord[0] * self.scale + self.top_left.x - (self.offset_factor_x),
            y: -(screen_coord[1] * self.scale) + self.top_left.y + (self.offset_factor_y),
        }
    }
/// Calculates the cartesian point that exists at a given pixel-location on the
/// window/viewport.
Calculates the cartesian point that exists at a given pixel-location on the
window/viewport.
Calculates the cartesian point that exists at a given pixel - location on the window / viewport .
pub fn map_pixel_to_point(&self, screen_coord: Vec2d) -> Point {
        Point {
            x: screen_coord[0] * self.scale + self.top_left.x - (self.offset_factor_x),
            y: -(screen_coord[1] * self.scale) + self.top_left.y + (self.offset_factor_y),
        }
    }
pub fn map_pixel_to_point ( & self , screen_coord : Vec2d ) -> Point { Point { x : screen_coord [ 0 ] * self . scale + self . top_left . x - ( self . offset_factor_x ) , y : - ( screen_coord [ 1 ] * self . scale ) + self . top_left . y + ( self . offset_factor_y ) , } }
Calculates the cartesian point that exists at a given pixel-location on the
window/viewport.
Calculates the cartesian point that exists at a given pixel - location on the window / viewport .
&self
screen_coord
Vec2d