pub fn forward_kinematics( link_lengths: &[f64], joint_angles: &[f64], ) -> [f64; 2]
Computes the forward kinematics for given link lengths and joint angles.
Returns the end-effector position [x, y].