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

Why is heading done like this in PVector #3511

clankill3r opened this Issue Jul 28, 2015 · 1 comment


None yet
2 participants

clankill3r commented Jul 28, 2015

Why is heading like this:

  public float heading() {
    float angle = (float) Math.atan2(-y, x);
    return -1*angle;

This gives the same results:

  public float heading() {
    return (float) Math.atan2(y, x);

This comment has been minimized.

Show comment
Hide comment

shiffman Jul 28, 2015


I have no idea! Changed accordingly.


shiffman commented Jul 28, 2015

I have no idea! Changed accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment