fn update_matrices(&self) {
        *self.proj.write().unwrap() = cgmath::perspective(cgmath::Deg(60.0), self.get_aspect_ratio(), 0.01, 100.0);
        *self.view.write().unwrap() = cgmath::Matrix4::look_at_dir(self.pos, self.dir, self.up);
        *self.combined.write().unwrap() = *self.proj.read().unwrap() * *self.view.read().unwrap();
        self.dirty.store(false, Ordering::SeqCst);
    }
/// Updates the matrices contained within the camera. Call if you need to retrieve a value from
/// this camera, but the state is dirty.
Updates the matrices contained within the camera. Call if you need to retrieve a value from
this camera, but the state is dirty.
Updates the matrices contained within the camera . Call if you need to retrieve a value from this camera but the state is dirty .
fn update_matrices(&self) {
        *self.proj.write().unwrap() = cgmath::perspective(cgmath::Deg(60.0), self.get_aspect_ratio(), 0.01, 100.0);
        *self.view.write().unwrap() = cgmath::Matrix4::look_at_dir(self.pos, self.dir, self.up);
        *self.combined.write().unwrap() = *self.proj.read().unwrap() * *self.view.read().unwrap();
        self.dirty.store(false, Ordering::SeqCst);
    }
fn update_matrices ( & self ) { * self . proj . write ( ) . unwrap ( ) = cgmath :: perspective ( cgmath :: Deg ( 60.0 ) , self . get_aspect_ratio ( ) , 0.01 , 100.0 ) ; * self . view . write ( ) . unwrap ( ) = cgmath :: Matrix4 :: look_at_dir ( self . pos , self . dir , self . up ) ; * self . combined . write ( ) . unwrap ( ) = * self . proj . read ( ) . unwrap ( ) * * self . view . read ( ) . unwrap ( ) ; self . dirty . store ( false , Ordering :: SeqCst ) ; }
Updates the matrices contained within the camera.
Updates the matrices contained within the camera .
&self
&self