Sorry about those typo’s. Here are the changes. also, my calculations were in deg. i changed them to rad which is what the coding usualy uses. Ether is right about using the law of cosines, I just went over it today and couldn’t remember it before. that was my fault.
we are not using the kinect. we are using the axis camera and ratios to find the distance and angles. however, I wasn’t working on getting the images, i just did the math so I can’t help you there.