Mathematics · also Robotics
Angles and trigonometry
Trigonometry connects angles to lengths. For a line of length L at angle θ from the x-axis, its horizontal part is L times cos θ and its vertical part is L times sin θ. Going the other way, the two-argument arctangent, atan2(y, x), recovers an angle from components and correctly handles every quadrant. Engineers usually measure angles in radians, where a full turn is 2π, because the formulas for rotation and angular speed become simpler and most programming libraries expect radians.
Why it mattersEvery joint angle a robot arm reports must pass through sine and cosine before the controller knows where the hand actually is.