pub struct ProjectionMatrixBuilder { /* private fields */ }
Expand description
Builder to construct projection matrices
Implementations
sourceimpl ProjectionMatrixBuilder
impl ProjectionMatrixBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Returns an instance of a builder
Default
By default, the matrix builder sets the following defaults:
screen_position
: 0.0view_limit
: 1000.0fov
: 90.0width
: 1280height
: 720
sourcepub fn set_height(self, height: usize) -> Self
pub fn set_height(self, height: usize) -> Self
Sets the height of the screen
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ProjectionMatrixBuilder
impl Send for ProjectionMatrixBuilder
impl Sync for ProjectionMatrixBuilder
impl Unpin for ProjectionMatrixBuilder
impl UnwindSafe for ProjectionMatrixBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more