pub struct TranslationPhase { /* private fields */ }Expand description
Deterministic current host phase. No identities, callbacks, or history. Times are monotonic host seconds, independent from application state.
Implementations§
Source§impl TranslationPhase
impl TranslationPhase
pub fn new( config: TranslationMotion, seconds: f64, allowed: bool, ) -> Result<Self, Error>
pub fn config(&self) -> TranslationMotion
Sourcepub fn origin(&self) -> TranslationOffset
pub fn origin(&self) -> TranslationOffset
Accepted start of a finite transition, sampled at the preceding turn.
Sourcepub fn admitted(&self) -> bool
pub fn admitted(&self) -> bool
Whether the current declaration owns an admitted physical animation, including a paused or completed one retained at its final position.
pub fn offset(&self, seconds: f64) -> Result<TranslationOffset, Error>
pub fn running(&self, seconds: f64) -> Result<bool, Error>
Trait Implementations§
Source§impl Clone for TranslationPhase
impl Clone for TranslationPhase
Auto Trait Implementations§
impl Forget for TranslationPhase
impl Freeze for TranslationPhase
impl RefUnwindSafe for TranslationPhase
impl Send for TranslationPhase
impl Sync for TranslationPhase
impl Unpin for TranslationPhase
impl UnsafeUnpin for TranslationPhase
impl UnwindSafe for TranslationPhase
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