# Epitrochoid

https://en.wikipedia.org/wiki/Epitrochoid
The epitrochoid with R = 3, r = 1 and d = 1/2

An epitrochoid ( or ) is a roulette traced by a point attached to a circle of radius r rolling around the outside of a fixed circle of radius R, where the point is at a distance d from the center of the exterior circle.

The parametric equations for an epitrochoid are

${\displaystyle x(\theta )=(R+r)\cos \theta -d\cos \left({R+r \over r}\theta \right),\,}$
${\displaystyle y(\theta )=(R+r)\sin \theta -d\sin \left({R+r \over r}\theta \right).\,}$

The parameter ${\displaystyle \theta }$ is geometrically the polar angle of the center of the exterior circle. (However, ${\displaystyle \theta }$ is not the polar angle of the point ${\displaystyle (x(\theta ),y(\theta ))}$ on the epitrochoid.)

Special cases include the limaçon with R = r and the epicycloid with d = r.

The classic Spirograph toy traces out epitrochoid and hypotrochoid curves.

The orbits of planets in the once popular geocentric Ptolemaic system are epitrochoids.

The orbit of the moon, when centered around the sun, approximates an epitrochoid.

The combustion chamber of the Wankel engine is an epitrochoid.