Skip to main content
100%

unit circle

✓ Published0🌍 Public
Aamundo
Last edited Mar 21, 2013
Created on Mar 21, 2013

A particle traces the unit circle while projecting its x- and y-coordinates onto separate cosine and sine waveforms, revealing the trigonometric relationship between circular motion and sinusoidal waves. Using D3.js, the visualization samples the sine and cosine functions to generate the circle path and dynamically updates the wave lines as the particle moves. The code employs `d3.svg.line` for path generation and a linear scale to map sample indices to pixel positions, with a time-driven animation loop updating the particle and waveforms.

AI-generated description

Similar vizzes