[−][src]Struct oxygengine_animation::animation::Animation
Fields
value_spline: Spline<T>
time_phase: Phase
playing: bool
looped: bool
Implementations
impl<T> Animation<T> where
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
[src]
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
pub fn new(value_spline: Spline<T>, time_phase: Phase) -> Self
[src]
pub fn instant(value: T) -> Self
[src]
pub fn time(&self) -> Scalar
[src]
pub fn start(&mut self)
[src]
pub fn end(&mut self)
[src]
pub fn set_time(&mut self, time: Scalar)
[src]
pub fn in_progress(&self) -> bool
[src]
pub fn is_complete(&self) -> bool
[src]
pub fn duration(&self) -> Scalar
[src]
pub fn value(&self) -> T
[src]
pub fn sample(&self, time: Scalar) -> T
[src]
pub fn process(&mut self, delta_time: Scalar)
[src]
Trait Implementations
impl<T: Clone> Clone for Animation<T> where
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
[src]
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
impl<T: Debug> Debug for Animation<T> where
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
[src]
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
impl<T: Default> Default for Animation<T> where
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
[src]
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
impl<'de, T> Deserialize<'de> for Animation<T> where
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
T: Serialize + DeserializeOwned,
[src]
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
T: Serialize + DeserializeOwned,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T> Serialize for Animation<T> where
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
T: Serialize + DeserializeOwned,
[src]
T: Default + Clone + Curved + CurvedOffset + CurvedDistance + CurvedTangent,
T: Serialize + DeserializeOwned,
Auto Trait Implementations
impl<T> RefUnwindSafe for Animation<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Animation<T> where
T: Send,
T: Send,
impl<T> Sync for Animation<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Animation<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Animation<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> TryDefault for T where
T: Default,
T: Default,
fn try_default() -> Result<T, String>
fn unwrap_default() -> Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,