Skip to main content

pamoja_two_link_arm_tip

Function pamoja_two_link_arm_tip 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_two_link_arm_tip( arm: PamojaTwoLinkArm, shoulder: f32, elbow: f32, ) -> PamojaPoint
Expand description

Returns where a two-link arm’s hand is for its joint angles.

§Arguments

  • arm - the arm.
  • shoulder - the shoulder angle, in radians from the x axis.
  • elbow - the elbow angle, in radians relative to the first link.

§Returns

The hand’s position.