Enum rafx_visibility::Projection
source · pub enum Projection {
Perspective(PerspectiveParameters),
Orthographic(OrthographicParameters),
Undefined,
}
Variants§
Implementations§
source§impl Projection
impl Projection
pub fn depth_range(&self) -> DepthRange
pub fn near_distance(&self) -> f32
pub fn far_distance(&self) -> f32
pub fn as_rh_mat4(&self) -> Mat4
pub fn as_lh_mat4(&self) -> Mat4
Trait Implementations§
source§impl Clone for Projection
impl Clone for Projection
source§fn clone(&self) -> Projection
fn clone(&self) -> Projection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Projection
impl Debug for Projection
source§impl PartialEq for Projection
impl PartialEq for Projection
source§fn eq(&self, other: &Projection) -> bool
fn eq(&self, other: &Projection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Projection
Auto Trait Implementations§
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnwindSafe for Projection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more