Skip to content

Commit

Permalink
use cached cos/sin
Browse files Browse the repository at this point in the history
  • Loading branch information
flyover committed May 12, 2016
1 parent 8ec1dec commit 64c3cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/render-webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ function mat3x3Transform(m, v, out) {
function mat3x3ApplySpace(m, space) {
if (space) {
mat3x3Translate(m, space.position.x, space.position.y);
mat3x3Rotate(m, space.rotation.rad);
mat3x3RotateCosSin(m, space.rotation.cos, space.rotation.sin);
mat3x3Multiply2x2(m, space.scale.a, space.scale.b, space.scale.c, space.scale.d);
}
return m;
Expand Down

0 comments on commit 64c3cf0

Please sign in to comment.