Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverted sinus and cosinus in docs #970

Open
PauSala opened this issue Jun 15, 2024 · 0 comments
Open

Inverted sinus and cosinus in docs #970

PauSala opened this issue Jun 15, 2024 · 0 comments

Comments

@PauSala
Copy link

PauSala commented Jun 15, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant