◐ Shell
clean mode source ↗

fix rotateZ() bug for PShape by knupel · Pull Request #5821 · processing/processing

Expand Up @@ -259,7 +259,6 @@ public void rotate(float angle, float v0, float v1, float v2) { float c = cos(angle); float s = sin(angle); float t = 1.0f - c;
apply((t*v0*v0) + c, (t*v0*v1) - (s*v2), (t*v0*v2) + (s*v1), 0, (t*v0*v1) + (s*v2), (t*v1*v1) + c, (t*v1*v2) - (s*v0), 0, (t*v0*v2) - (s*v1), (t*v1*v2) + (s*v0), (t*v2*v2) + c, 0, Expand Down