Struct rin::scene::transformation::Bone[][src]

pub struct Bone {
Show fields pub rest: Node, pub original: Node, pub animated: Node, pub rot_mode: RotMode, pub rest_mat: Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>, pub inv_rest_mat: Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>, pub animated_id: usize, pub optimized_id: usize, pub head: Point<f32, U3>, pub tail: Point<f32, U3>, pub head_radius: f32, pub tail_radius: f32, pub name: String, pub has_changed: bool, pub flags: BoneFlags, pub used: bool,
}

Fields

rest: Nodeoriginal: Nodeanimated: Noderot_mode: RotModerest_mat: Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>inv_rest_mat: Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>animated_id: usizeoptimized_id: usizehead: Point<f32, U3>tail: Point<f32, U3>head_radius: f32tail_radius: f32name: Stringhas_changed: boolflags: BoneFlagsused: bool

Implementations

impl Bone[src]

pub fn pose_mat(
    &self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
[src]

pub fn local_mat(
    &self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
[src]

pub fn global_head(&self) -> Point<f32, U3>[src]

pub fn global_tail(&self) -> Point<f32, U3>[src]

pub fn to_dual_quaternion(
    &self
) -> (Dual<Quaternion<f32>>, Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>)
[src]

pub fn update_with_parent(&mut self, parent: Option<&Bone>) -> bool[src]

Trait Implementations

impl Component for Bone[src]

type Storage = Forest<Bone>

type MutStorageCacheGuard = ()

impl Debug for Bone[src]

impl DebugParameter for Bone[src]

impl<'de> Deserialize<'de> for Bone[src]

impl Serialize for Bone[src]

Auto Trait Implementations

impl RefUnwindSafe for Bone

impl Send for Bone

impl Sync for Bone

impl Unpin for Bone

impl UnwindSafe for Bone

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<C> ComponentSend for C where
    C: Component + Send
[src]

impl<C> ComponentThreadLocal for C where
    C: Component
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]