这个示例展示了正弦和余弦数学函数。
动画展示了单位圆(半径为 1 的圆)周围的匀速圆周运动。从 x 轴测量的任何角度都决定了圆上的一个点。该角度的余弦和正弦分别被定义为该点的 x 坐标和 y 坐标。
正弦与余弦: Revised by Darren Kessner, Malay Vasa. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.
You can find the code history of these examples here: pre-2023 example, 2023 code. You can suggest improvements by contributing to the current website!