pub struct DualQuat { /* private fields */ }Expand description
Rigid-body dual quaternion (real, dual) for volume-preserving dual-quaternion skeletal skinning.
Implementations§
Source§impl DualQuat
Rigid-body dual-quaternion algebra and hemisphere-aligned blending for DualQuat.
impl DualQuat
Rigid-body dual-quaternion algebra and hemisphere-aligned blending for DualQuat.
Sourcepub const fn identity() -> Self
pub const fn identity() -> Self
Returns the identity dual quaternion (no rotation, zero translation).
§Returns
Self- IdentityDualQuat.
Sourcepub fn from_rotation_translation(rotation: Quat, translation: Vec3) -> Self
pub fn from_rotation_translation(rotation: Quat, translation: Vec3) -> Self
Sourcepub fn translation(&self) -> Vec3
pub fn translation(&self) -> Vec3
Sourcepub fn blend_weighted(duals: &[Self], weights: &[f32]) -> Self
pub fn blend_weighted(duals: &[Self], weights: &[f32]) -> Self
Sourcepub fn transform_point(self, point: Vec3) -> Vec3
pub fn transform_point(self, point: Vec3) -> Vec3
Trait Implementations§
impl Copy for DualQuat
impl StructuralPartialEq for DualQuat
Auto Trait Implementations§
impl Forget for DualQuat
impl Freeze for DualQuat
impl Move for DualQuat
impl RefUnwindSafe for DualQuat
impl Send for DualQuat
impl Sync for DualQuat
impl Unpin for DualQuat
impl UnsafeUnpin for DualQuat
impl UnwindSafe for DualQuat
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