Struct TwoBoneIkResult
#[repr(C)]pub struct TwoBoneIkResult {
pub world_motors: [Motor; 3],
pub local_motors: [Motor; 3],
pub knee_angle_rad: f32,
pub target_error: f32,
}Expand description
Output receipt for solve_two_bone_motor_ik_zero_heap.
Fields§
§world_motors: [Motor; 3]Updated world-space Motors for [root, mid, end].
local_motors: [Motor; 3]Updated local-space Motors ([root_world, root^-1 * mid, mid^-1 * end]).
knee_angle_rad: f32Interior knee/elbow angle in radians (\pi = straight limb).
target_error: f32Euclidean distance from solved end-effector to target_pos.
Trait Implementations§
§impl Clone for TwoBoneIkResult
impl Clone for TwoBoneIkResult
§fn clone(&self) -> TwoBoneIkResult
fn clone(&self) -> TwoBoneIkResult
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 moreimpl Copy for TwoBoneIkResult
§impl Debug for TwoBoneIkResult
impl Debug for TwoBoneIkResult
§impl PartialEq for TwoBoneIkResult
impl PartialEq for TwoBoneIkResult
impl StructuralPartialEq for TwoBoneIkResult
Auto Trait Implementations§
impl Freeze for TwoBoneIkResult
impl RefUnwindSafe for TwoBoneIkResult
impl Send for TwoBoneIkResult
impl Sync for TwoBoneIkResult
impl Unpin for TwoBoneIkResult
impl UnsafeUnpin for TwoBoneIkResult
impl UnwindSafe for TwoBoneIkResult
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