pub trait Camera:
Send
+ Sync
+ Clone {
// Required methods
fn view(&self) -> Mat4;
fn projection(&self) -> Mat4;
fn eye(&mut self) -> &mut Vec3;
fn target(&mut self) -> &mut Vec3;
fn up(&mut self) -> &mut Vec3;
// Provided method
fn matrix(&self) -> Mat4 { ... }
}Expand description
Abstraction of a camera
Required Methods§
Sourcefn projection(&self) -> Mat4
fn projection(&self) -> Mat4
Create a projection matrix
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.