Skip to content

Commit

Permalink
Update tween.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mintlu8 committed Apr 12, 2024
1 parent fe071f5 commit bcc75c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tween.rs
@@ -1,6 +1,7 @@
//! Tweening for `bevy_defer`.
//! Tweening support for `bevy_defer`.
use std::{ops::{Add, Mul}, time::Duration};
use bevy_math::Quat;
use ref_cast::RefCast;

/// Looping information for tweening.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
Expand All @@ -23,7 +24,8 @@ impl<T> Lerp for T where T: Add<T, Output = T> + Mul<f32, Output = T> + Clone +
}

/// Performs a spherical linear interpolation on [`Quat`].
#[derive(Debug, Clone, Copy, Default, PartialEq)]
#[derive(Debug, Clone, Copy, Default, PartialEq, RefCast)]
#[repr(transparent)]
pub struct SLerp(pub Quat);

impl Lerp for SLerp {
Expand Down

0 comments on commit bcc75c2

Please sign in to comment.