Struct rafx_visibility::PerspectiveParameters
source · pub struct PerspectiveParameters { /* private fields */ }
Implementations§
source§impl PerspectiveParameters
impl PerspectiveParameters
pub fn new( fov_y_radians: f32, ratio: f32, near_distance: f32, far_distance: f32, depth_range: DepthRange ) -> Self
pub fn fov_y_radians(&self) -> f32
pub fn ratio(&self) -> f32
pub fn near_distance(&self) -> f32
pub fn far_distance(&self) -> f32
pub fn depth_range(&self) -> DepthRange
Trait Implementations§
source§impl Clone for PerspectiveParameters
impl Clone for PerspectiveParameters
source§fn clone(&self) -> PerspectiveParameters
fn clone(&self) -> PerspectiveParameters
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 PerspectiveParameters
impl Debug for PerspectiveParameters
source§impl Default for PerspectiveParameters
impl Default for PerspectiveParameters
source§fn default() -> PerspectiveParameters
fn default() -> PerspectiveParameters
Returns the “default value” for a type. Read more
source§impl PartialEq for PerspectiveParameters
impl PartialEq for PerspectiveParameters
source§fn eq(&self, other: &PerspectiveParameters) -> bool
fn eq(&self, other: &PerspectiveParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PerspectiveParameters
Auto Trait Implementations§
impl RefUnwindSafe for PerspectiveParameters
impl Send for PerspectiveParameters
impl Sync for PerspectiveParameters
impl Unpin for PerspectiveParameters
impl UnwindSafe for PerspectiveParameters
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