nannou-org / nannou

A Creative Coding Framework for Rust.
https://nannou.cc/
6.04k stars 305 forks source link

Inverted sinus and cosinus in docs #970

Open PauSala opened 5 months ago

PauSala commented 5 months ago

Hello! It is possibel that here the sinus and cosinus are inverted for some reason while calculating the coordinates?

    // Get the sine of the radian to find the x co-ordinate of this point of the circle
    // and multiply it by the radius.
    let x = radian.sin() * radius;
    // Do the same with cosine to find the y co-ordinate.
    let y = radian.cos() * radius;
    // Construct and return a point object with a color.

Thank you!