Skip to content

Commit

Permalink
Merge pull request #4 from processing/master
Browse files Browse the repository at this point in the history
update
  • Loading branch information
hackertron authored Jan 1, 2018
2 parents 0034271 + 5501304 commit 8fd02e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/webgl/p5.Matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,8 @@ p5.Matrix.prototype.scale = function() {
p5.Matrix.prototype.rotate = function(a, axis) {
var x, y, z, _a, len;

if (this.p5) {
if (this.p5._angleMode === constants.DEGREES) {
_a = polarGeometry.degreesToRadians(a);
}
if (this.p5 && this.p5._angleMode === constants.DEGREES) {
_a = polarGeometry.degreesToRadians(a);
} else {
_a = a;
}
Expand Down

0 comments on commit 8fd02e7

Please sign in to comment.