Skip to content

Commit

Permalink
radians() and degrees() should always do conversion processing#163
Browse files Browse the repository at this point in the history
  • Loading branch information
shiffman committed Apr 2, 2014
1 parent 74c3629 commit 8890e88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/math/trigonometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ define(function (require) {
};

p5.prototype.degrees = function(angle) {
return this.settings.angleMode === constants.DEGREES ? angle : polarGeometry.radiansToDegrees(angle);
return polarGeometry.radiansToDegrees(angle);
};

p5.prototype.radians = function(angle) {
return this.settings.angleMode === constants.RADIANS ? angle : polarGeometry.degreesToRadians(angle);
return polarGeometry.degreesToRadians(angle);
};

p5.prototype.angleMode = function(mode) {
Expand Down

0 comments on commit 8890e88

Please sign in to comment.