pub struct Skeleton { /* private fields */ }Implementations§
Source§impl Skeleton
impl Skeleton
pub fn new( joints: Vec<Joint>, inverse_binds: Vec<Mat4>, ) -> Result<Self, AnimError>
pub fn rooted( joints: Vec<Joint>, inverse_binds: Vec<Mat4>, root: Mat4, ) -> Result<Self, AnimError>
pub fn joints(&self) -> &[Joint]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn joint(&self, name: &str) -> Option<usize>
pub fn inverse_binds(&self) -> &[Mat4] ⓘ
pub fn root(&self) -> Mat4
Trait Implementations§
impl StructuralPartialEq for Skeleton
Auto Trait Implementations§
impl Freeze for Skeleton
impl RefUnwindSafe for Skeleton
impl Send for Skeleton
impl Sync for Skeleton
impl Unpin for Skeleton
impl UnsafeUnpin for Skeleton
impl UnwindSafe for Skeleton
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