pub struct PoseGrid {
pub times: Vec<f32>,
/* private fields */
}Expand description
Model-space and local poses for every (frame, bone) of one clip.
Fields§
§times: Vec<f32>Uniform sample times, times[0] == 0, times[last] == duration.
Implementations§
Source§impl PoseGrid
impl PoseGrid
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Number of sampled frames.
Sourcepub fn bone_count(&self) -> usize
pub fn bone_count(&self) -> usize
Number of bones sampled per frame.
Sourcepub fn model_position(&self, frame: usize, bone: usize) -> Vec3
pub fn model_position(&self, frame: usize, bone: usize) -> Vec3
Sourcepub fn model_rotation(&self, frame: usize, bone: usize) -> Quat
pub fn model_rotation(&self, frame: usize, bone: usize) -> Quat
Model-space joint rotation, composed from the local rotation chain independently of scale. This avoids extracting an ambiguous rotation from a model matrix that contains non-uniform scale or shear.
§Panics
Panics if either index is outside the grid bounds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoseGrid
impl RefUnwindSafe for PoseGrid
impl Send for PoseGrid
impl Sync for PoseGrid
impl Unpin for PoseGrid
impl UnsafeUnpin for PoseGrid
impl UnwindSafe for PoseGrid
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