pub struct InterpolationSample<'a, S> {
pub render_tick: f64,
pub previous_tick: u64,
pub previous: &'a S,
pub next_tick: u64,
pub next: &'a S,
pub alpha: f64,
pub holding_newest: bool,
}Expand description
Two buffered states and interpolation factor selected for rendering.
Fields§
§render_tick: f64Fractional server Tick selected for rendering.
previous_tick: u64Tick of the earlier state.
previous: &'a SEarlier state supplied to application interpolation.
next_tick: u64Tick of the later state.
next: &'a SLater state supplied to application interpolation.
alpha: f64Clamped blend factor between previous and next.
holding_newest: booltrue when rendering is ahead of the newest state and the newest state is held.
Trait Implementations§
Source§impl<'a, S: Clone> Clone for InterpolationSample<'a, S>
impl<'a, S: Clone> Clone for InterpolationSample<'a, S>
Source§fn clone(&self) -> InterpolationSample<'a, S>
fn clone(&self) -> InterpolationSample<'a, S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a, S: Copy> Copy for InterpolationSample<'a, S>
Auto Trait Implementations§
impl<'a, S> Freeze for InterpolationSample<'a, S>
impl<'a, S> RefUnwindSafe for InterpolationSample<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for InterpolationSample<'a, S>where
S: Sync,
impl<'a, S> Sync for InterpolationSample<'a, S>where
S: Sync,
impl<'a, S> Unpin for InterpolationSample<'a, S>
impl<'a, S> UnsafeUnpin for InterpolationSample<'a, S>
impl<'a, S> UnwindSafe for InterpolationSample<'a, S>where
S: RefUnwindSafe,
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