Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion core/src/processing/core/PMatrix3D.java
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion core/src/processing/opengl/PShapeOpenGL.java
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ public void rotateY(float angle) {

@Override
public void rotateZ(float angle) {
transform(ROTATE, angle);
rotate(angle, 0, 0, 1);
}


Expand Down