pub struct Leg {
pub tip: V3,
pub t: V3,
pub t2: V3,
pub joint: V3,
pub b: V3,
pub u: V3,
pub length: f64,
pub arm: f64,
pub cos: f64,
}Expand description
One leg at a pose: the crank’s tip C, its tangent t and second derivative t2 by the crank angle, the platform joint P and its offset b = R a from the platform centre, the rod’s unit vector u from C to P and its length |P - C|, the torque arm u . t, and the cosine of the crank angle.
Fields§
§tip: V3§t: V3§t2: V3§joint: V3§b: V3§u: V3§length: f64§arm: f64§cos: f64Trait Implementations§
Auto Trait Implementations§
impl Freeze for Leg
impl RefUnwindSafe for Leg
impl Send for Leg
impl Sync for Leg
impl Unpin for Leg
impl UnsafeUnpin for Leg
impl UnwindSafe for Leg
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