Workshop
Workshop
• Use arrays and for loops to calculate and store the coordinates • Calculate the x and y coordinates
for a sine wave
• Set as inputs for the component: o The angular step of the sine wave (how dense the points would
be) o The number of complete cycles of the wave (frequency) • Set as outputs: o X coordinates o Y
coordinates Additional Elements: • Use the clamp function showed in class to clamp the sine wave
within a domain
• Use the parametric equation of the circle to calculate the X and Y coordinates of the points and use
the Sine function to set the Z coordinates of the points Extras: • Create your own custom functions
to make your code more concise and re-usable