Skip to main content
Torqheart
← Foundations

Mathematics

Sine and cosine: from angle to distance

Sine and cosine turn an angle into a horizontal and a vertical distance: the bridge from a joint angle to where a hand or foot is.

See it first

Try it

Where the tip goes as the arm rises

00.20.40.60.800.511.5Angle θ (rad)m
Out L·cos θUp L·sin θShortcut L·θ
Height at 30°
0.25 m
The L·θ shortcut holds only for small angles.

One step at a time

Step by step

Sine and cosine: from angle to distance

Step 1 of 5

Draw a circle of radius L

The joint is the centre; the tip runs on the circle.

In words

An arm of length L turned to angle θ puts its tip L·cos θ out and L·sin θ up. That is the heart of all of kinematics.

For small θ, sin θ is almost θ (in radians), so engineers simplify equations when a robot leans only a little. See on the graph where that shortcut starts to fail.

The formula

x = L·cos θ, y = L·sin θ

Where you meet this in a robot

Chain several links and add up each one's distances to get where the tip is (see forward kinematics).