Struct three::camera::Perspective
source · Expand description
Perspective projection parameters.
Fields
fov_y: f32
Vertical field of view in degrees. Note: the horizontal FOV is computed based on the aspect.
zrange: ZRange
The distance to the clipping planes.
Implementations
sourceimpl Perspective
impl Perspective
sourcepub fn matrix(&self, aspect_ratio: f32) -> ColumnMatrix4<f32>
pub fn matrix(&self, aspect_ratio: f32) -> ColumnMatrix4<f32>
Computes the projection matrix representing the camera’s projection.
Trait Implementations
sourceimpl Clone for Perspective
impl Clone for Perspective
sourcefn clone(&self) -> Perspective
fn clone(&self) -> Perspective
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 moresourceimpl Debug for Perspective
impl Debug for Perspective
sourceimpl PartialEq<Perspective> for Perspective
impl PartialEq<Perspective> for Perspective
sourcefn eq(&self, other: &Perspective) -> bool
fn eq(&self, other: &Perspective) -> bool
impl StructuralPartialEq for Perspective
Auto Trait Implementations
impl RefUnwindSafe for Perspective
impl Send for Perspective
impl Sync for Perspective
impl Unpin for Perspective
impl UnwindSafe for Perspective
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.