pub struct MeshAnimationSequence {
pub submesh_alpha: HashMap<usize, Phase>,
pub submesh_order: HashMap<usize, Phase>,
pub bone_position_x: HashMap<String, Phase>,
pub bone_position_y: HashMap<String, Phase>,
pub bone_rotation: HashMap<String, Phase>,
pub bone_scale_x: HashMap<String, Phase>,
pub bone_scale_y: HashMap<String, Phase>,
/* private fields */
}
Fields§
§submesh_alpha: HashMap<usize, Phase>
§submesh_order: HashMap<usize, Phase>
§bone_position_x: HashMap<String, Phase>
§bone_position_y: HashMap<String, Phase>
§bone_rotation: HashMap<String, Phase>
§bone_scale_x: HashMap<String, Phase>
§bone_scale_y: HashMap<String, Phase>
Implementations§
Source§impl MeshAnimationSequence
impl MeshAnimationSequence
pub fn initialize(&mut self)
pub fn length(&self) -> Scalar
pub fn sample_submesh_alpha( &self, time: Scalar, index: usize, current: Scalar, ) -> Scalar
pub fn sample_submesh_order( &self, time: Scalar, index: usize, current: Scalar, ) -> Scalar
pub fn sample_bone_position_x( &self, time: Scalar, name: &str, current: Scalar, ) -> Scalar
pub fn sample_bone_position_y( &self, time: Scalar, name: &str, current: Scalar, ) -> Scalar
pub fn sample_bone_rotation( &self, time: Scalar, name: &str, current: Scalar, ) -> Scalar
pub fn sample_bone_scale_x( &self, time: Scalar, name: &str, current: Scalar, ) -> Scalar
pub fn sample_bone_scale_y( &self, time: Scalar, name: &str, current: Scalar, ) -> Scalar
Trait Implementations§
Source§impl Clone for MeshAnimationSequence
impl Clone for MeshAnimationSequence
Source§fn clone(&self) -> MeshAnimationSequence
fn clone(&self) -> MeshAnimationSequence
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 MeshAnimationSequence
impl Debug for MeshAnimationSequence
Source§impl<'de> Deserialize<'de> for MeshAnimationSequence
impl<'de> Deserialize<'de> for MeshAnimationSequence
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MeshAnimationSequence
impl RefUnwindSafe for MeshAnimationSequence
impl Send for MeshAnimationSequence
impl Sync for MeshAnimationSequence
impl Unpin for MeshAnimationSequence
impl UnwindSafe for MeshAnimationSequence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more