Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Add check rotation angle value
Browse files Browse the repository at this point in the history
  • Loading branch information
LeleVic committed May 12, 2015
1 parent 3814da5 commit 30bcbea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Common/MV.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ function rotate( angle, axis )
axis = [ arguments[1], arguments[2], arguments[3] ];
}

if (angle == 0) {
return mat4(1);
}


var v = normalize( axis );

var x = v[0];
Expand Down

0 comments on commit 30bcbea

Please sign in to comment.