pub struct Perspective3 {
pub aspect: f32,
pub near: f32,
pub far: f32,
pub handedness: ViewHandedness,
pub depth: NdcDepth,
}Expand description
Explicit symmetric finite-far perspective intent; FOV comes from Pose3.
aspect must be finite/positive, and finite planes satisfy 0 < near < far.
The host owns projection construction and its representability. Exact equality
is required for nonzero blends. To change these values, cut explicitly (or use
zero duration). See the module recipe; no lens is silently inferred/defaulted.
Fields§
§aspect: f32Width divided by height, in the host’s actual viewport.
near: f32Positive near-plane distance.
far: f32Finite far-plane distance, strictly greater than near.
handedness: ViewHandednessView-matrix convention, independent of the world-space pose.
depth: NdcDepthExplicit clip-space depth convention, reusing the math projector’s type.
Trait Implementations§
Source§impl Clone for Perspective3
impl Clone for Perspective3
Source§fn clone(&self) -> Perspective3
fn clone(&self) -> Perspective3
Returns a duplicate 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 Perspective3
impl Debug for Perspective3
Source§impl PartialEq for Perspective3
impl PartialEq for Perspective3
impl Copy for Perspective3
impl StructuralPartialEq for Perspective3
Auto Trait Implementations§
impl Freeze for Perspective3
impl RefUnwindSafe for Perspective3
impl Send for Perspective3
impl Sync for Perspective3
impl Unpin for Perspective3
impl UnwindSafe for Perspective3
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