fn zoom(&mut self, rect: [Vec2d; 2]) {
        let tlp = self.vat.map_pixel_to_point(rect[0]);
        let brp = self.vat.map_pixel_to_point(rect[1]);

        self.view_area = [tlp, brp];
        self.redraw();
    }
/// Change the view area to the newly selected area, and then redraw.
Change the view area to the newly selected area, and then redraw.
Change the view area to the newly selected area and then redraw .
fn zoom(&mut self, rect: [Vec2d; 2]) {
        let tlp = self.vat.map_pixel_to_point(rect[0]);
        let brp = self.vat.map_pixel_to_point(rect[1]);
        self.view_area = [tlp, brp];
        self.redraw();
    }
fn zoom ( & mut self , rect : [ Vec2d ; 2 ] ) { let tlp = self . vat . map_pixel_to_point ( rect [ 0 ] ) ; let brp = self . vat . map_pixel_to_point ( rect [ 1 ] ) ; self . view_area = [ tlp , brp ] ; self . redraw ( ) ; }
Change the view area to the newly selected area, and then redraw.
Change the view area to the newly selected area and then redraw .
&mut self
rect
[Vec2d; 2]