Skip to content

Conversation

@KevinGrajeda
Copy link
Contributor

@KevinGrajeda KevinGrajeda commented Jul 27, 2022

Resolves #5497

Changes:

  • setHeading now takes into account angleMode(DEGREES)
  • added test for setHeading using radians and degrees

PR Checklist

@KevinGrajeda
Copy link
Contributor Author

@limzykenneth, @jeffawang, @AdilRabbani I would like a review, thanks👍.

@KevinGrajeda KevinGrajeda changed the title Fixed setHeading() not using the current angle mode Fixed setHeading(),fromAngle() and random2D() not using the current angle mode Jul 28, 2022
@KevinGrajeda KevinGrajeda marked this pull request as draft July 28, 2022 00:29
@KevinGrajeda KevinGrajeda changed the title Fixed setHeading(),fromAngle() and random2D() not using the current angle mode Fixed setHeading() not using the current angle mode Jul 29, 2022
@KevinGrajeda KevinGrajeda marked this pull request as ready for review July 29, 2022 22:34
@limzykenneth limzykenneth merged commit 11d07e6 into processing:main Jul 30, 2022
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

Successfully merging this pull request may close these issues.

p5.Vector.setHeading uses radians, even when angleMode(DEGREES) is specified

2 participants