use ggez::nalgebra::Point2; pub struct Camera { pub draw: Point2, } impl Camera { pub fn new(draw: Point2) -> Camera { Camera { draw } } pub fn give_center(&mut self, center: Point2) {} } impl Default for Camera { fn default() -> Camera { Camera::new(Point2::new(0.0, 0.0)) } }