pub struct QuantizedAnimStream {
pub bone_count: u32,
pub frame_count: u32,
pub fps: f32,
pub translation_min: Vec3,
pub translation_max: Vec3,
pub frames: Vec<Vec<QuantizedBoneFrame>>,
pub bone_names: Vec<String>,
}Fields§
§bone_count: u32§frame_count: u32§fps: f32§translation_min: Vec3§translation_max: Vec3§frames: Vec<Vec<QuantizedBoneFrame>>§bone_names: Vec<String>Implementations§
Source§impl QuantizedAnimStream
impl QuantizedAnimStream
pub fn new(bone_count: u32, fps: f32) -> Self
pub fn add_frame(&mut self, bones: Vec<QuantizedBoneFrame>)
pub fn duration_s(&self) -> f32
pub fn total_bytes(&self) -> usize
pub fn sample_frame(&self, time_s: f32) -> Option<&Vec<QuantizedBoneFrame>>
pub fn compression_ratio_vs_f32(&self) -> f32
Trait Implementations§
Source§impl Clone for QuantizedAnimStream
impl Clone for QuantizedAnimStream
Auto Trait Implementations§
impl Freeze for QuantizedAnimStream
impl RefUnwindSafe for QuantizedAnimStream
impl Send for QuantizedAnimStream
impl Sync for QuantizedAnimStream
impl Unpin for QuantizedAnimStream
impl UnsafeUnpin for QuantizedAnimStream
impl UnwindSafe for QuantizedAnimStream
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.