inverse kinematics with law of cosines | ScratchStats