pub struct FlatTransformValues {
pub data: Vec<f32>,
pub frames: usize,
pub values_per_frame: usize,
}Expand description
Efficient storage of transform keyframes.
Deserialized from Vec<Vec<f32>> but stored flat.
Fields§
§data: Vec<f32>Flat data buffer: [frame0_val0, frame0_val1, …, frame1_val0, …]
frames: usizeNumber of frames in the animation.
values_per_frame: usizeNumber of values per frame (typically 1, sometimes more).
Implementations§
Trait Implementations§
Source§impl Clone for FlatTransformValues
impl Clone for FlatTransformValues
Source§fn clone(&self) -> FlatTransformValues
fn clone(&self) -> FlatTransformValues
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FlatTransformValues
impl RefUnwindSafe for FlatTransformValues
impl Send for FlatTransformValues
impl Sync for FlatTransformValues
impl Unpin for FlatTransformValues
impl UnsafeUnpin for FlatTransformValues
impl UnwindSafe for FlatTransformValues
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