Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Generate the points for the cycloid (X and Y coordinates)
- for (i = [0 : n_points-1]) {
- t = i * 2 * PI / (n_points-1); // parameter (use PI instead of pi)
- x = r * (t - sin(t)); // Cycloid X equation
- y = r * (1 - cos(t)); // Cycloid Y equation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement