cleanup
This commit is contained in:
@@ -24,9 +24,9 @@ impl Camera {
|
||||
}
|
||||
|
||||
pub fn set_aspect(&mut self, aspect: f32) { self.proj_matrix = cgmath::perspective(Deg(60.0), aspect, 0.1, 100.0); }
|
||||
pub fn get_projection(&self) -> Matrix4<f32> { return self.proj_matrix; }
|
||||
pub fn get_view(&self) -> Matrix4<f32> { return self.view_matrix; }
|
||||
pub fn get_position(&self) -> Point3<f32> { return self.position; }
|
||||
pub fn get_projection(&self) -> Matrix4<f32> { self.proj_matrix }
|
||||
pub fn get_view(&self) -> Matrix4<f32> { self.view_matrix }
|
||||
pub fn get_position(&self) -> Point3<f32> { self.position }
|
||||
}
|
||||
|
||||
pub trait CameraTransform {
|
||||
|
||||
Reference in New Issue
Block a user