Skip to content

Commit d2c1526

Browse files
authored
Enhancement (#430)
* fix typo * replace multiply by divide for consistency
1 parent 586bd9e commit d2c1526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webgl/lessons/webgl-2d-rotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ articles. [Next up a simpler one. Scale](webgl-2d-scale.html).
163163
Radians are a unit of measurement used with circles, rotation and angles. Just like we can measure distance in inches, yards, meters, etc we can measure angles in degrees or radians.
164164
</p>
165165
<p>
166-
You're probably aware that math with metric measurements is easier than math with imperial measurements. To go from inches to feet we divide by 12. To go from inches to yards we divide by 36. I don't know about you but I can't divide by 36 in my head. With metric it's much easier. To go from millimeters to centimeters we divide by 10. To go from millimeters to meters we divide by 1000. I <strong>can</strong> multiply by 1000 in my head.
166+
You're probably aware that math with metric measurements is easier than math with imperial measurements. To go from inches to feet we divide by 12. To go from inches to yards we divide by 36. I don't know about you but I can't divide by 36 in my head. With metric it's much easier. To go from millimeters to centimeters we divide by 10. To go from millimeters to meters we divide by 1000. I <strong>can</strong> divide by 1000 in my head.
167167
</p>
168168
<p>
169169
Radians vs degrees are similar. Degrees make the math hard. Radians make the math easy. There are 360 degrees in a circle but there are only 2π radians. So a full turn is 2π radians. A half turn is 1π radian. A 1/4 turn, ie 90 degrees is 1/2π radians. So if you want to rotate something 90 degrees just use <code>Math.PI * 0.5</code>. If you want to rotate it 45 degrees use <code>Math.PI * 0.25</code> etc.

0 commit comments

Comments
 (0)