
Spiraltastic photograph by brothergrimm@Flickr
I had a conversation about a Roomba once with someone who believed that it used the golden spiral to trace its path from the center of a room. To prove that it used a Sin function with a continuously increasing amplitude, I wrote this demonstration.
The real robot uses a constant speed, with a variable turning angle. My demonstration doesn’t use a vector. Instead it uses a combination of Sin and Cos to give absolute coordinates for each path step.