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: boolImplementations
impl Bone[src]
impl Bone[src]pub fn pose_mat(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>[src]
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
pub fn local_mat(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>[src]
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
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]
&self
) -> (Dual<Quaternion<f32>>, Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>)
pub fn update_with_parent(&mut self, parent: Option<&Bone>) -> bool[src]
Trait Implementations
impl DebugParameter for Bone[src]
impl DebugParameter for Bone[src]pub fn debug<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, [src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl<'de> Deserialize<'de> for Bone[src]
impl<'de> Deserialize<'de> for Bone[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Bone, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<Bone, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for Bone[src]
impl Serialize for Bone[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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> DowncastSync for T where
T: Any + Send + Sync, [src]
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]impl<T> Serialize for T where
T: Serialize + ?Sized, [src]
impl<T> Serialize for T where
T: Serialize + ?Sized, [src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]pub fn to_subset(&self) -> Option<SS>[src]
pub fn is_in_subset(&self) -> bool[src]
pub fn to_subset_unchecked(&self) -> SS[src]
pub fn from_subset(element: &SS) -> SP[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]pub fn to_subset(&self) -> Option<SS>[src]
pub fn is_in_subset(&self) -> bool[src]
pub fn to_subset_unchecked(&self) -> SS[src]
pub fn from_subset(element: &SS) -> SP[src]
impl<C> ComponentSend for C where
C: Component + Send, [src]
C: Component + Send,
impl<C> ComponentThreadLocal for C where
C: Component, [src]
C: Component,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,