pub struct AssemblyBody {
pub id: String,
pub fixed: bool,
pub rotation: [f64; 4],
pub translation: [f64; 3],
}Expand description
One rigid body of the assembly with its initial (guess) pose.
Fields§
§id: StringDisplay name used in reports and error messages.
fixed: boolGrounded bodies are excluded from the unknowns and never move.
rotation: [f64; 4]Unit quaternion [w, x, y, z] rotating body-local into world frame.
Any nonzero quaternion is accepted and normalized on input.
translation: [f64; 3]World-frame translation of the body-local origin.
Trait Implementations§
Source§impl Clone for AssemblyBody
impl Clone for AssemblyBody
Source§fn clone(&self) -> AssemblyBody
fn clone(&self) -> AssemblyBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssemblyBody
impl Debug for AssemblyBody
Source§impl<'de> Deserialize<'de> for AssemblyBody
impl<'de> Deserialize<'de> for AssemblyBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssemblyBody
impl RefUnwindSafe for AssemblyBody
impl Send for AssemblyBody
impl Sync for AssemblyBody
impl Unpin for AssemblyBody
impl UnsafeUnpin for AssemblyBody
impl UnwindSafe for AssemblyBody
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