Struct rafx_visibility::PerspectiveParameters
source · [−]pub struct PerspectiveParameters { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for PerspectiveParameters
impl Clone for PerspectiveParameters
sourcefn clone(&self) -> PerspectiveParameters
fn clone(&self) -> PerspectiveParameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PerspectiveParameters
impl Debug for PerspectiveParameters
sourceimpl Default for PerspectiveParameters
impl Default for PerspectiveParameters
sourcefn default() -> PerspectiveParameters
fn default() -> PerspectiveParameters
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PerspectiveParameters> for PerspectiveParameters
impl PartialEq<PerspectiveParameters> for PerspectiveParameters
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PerspectiveParameters) -> bool
fn ne(&self, other: &PerspectiveParameters) -> bool
This method tests for !=
.
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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more