Skip to content

Commit 3738210

Browse files
committed
Drawing3dText: Simplification
1 parent 501f9a4 commit 3738210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sketches/Drawing3dText/src/Sketch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ void Sketch::drawTextHelix(XFont &font, const u16string &text, float r, float tu
101101
{
102102
float d = offset / r;
103103
matrix
104-
.setTranslate(-cosf(d) * r, +sinf(d) * r, d * dz)
105-
.rotateZ(HALF_PI - d)
104+
.setTranslate(-sinf(-d) * r, +cosf(-d) * r, d * dz)
105+
.rotateZ(-d)
106106
.rotateY(ay)
107107
.rotateX(-HALF_PI);
108108

0 commit comments

Comments
 (0)