Skip to content

Commit 14e5826

Browse files
authored
Update README.md
1 parent c49ce13 commit 14e5826

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -189,27 +189,26 @@ v = myMat4(2, 3) // equivalent to myMat4[2, 1]
189189

190190
## Rotation types
191191

192-
Construct a Euler Angle Rotation Matrix using per axis angles in degrees
192+
Construct a Euler angles rotation matrix using per-axis angles in degrees:
193193

194194
```kotlin
195195
rotationMatrix = rotation(d = Float3(y = 90.0f)) // rotation of 90° around y axis
196196
```
197197

198-
Construct a Euler Angle Rotation Matrix using axis direction and angle in degree
198+
Construct a Euler angles rotation matrix using an axis direction and an angle in degrees:
199199

200200
```kotlin
201201
rotationMatrix = rotation(axis = Float3(y = 1.0f), angle = 90.0f) // rotation of 90° around y axis
202202
```
203203

204-
Construct a Quaternion Rotation Matrix following the Hamilton convention.
205-
Assume the destination and local coordinate spaces are initially aligned, and the local coordinate
206-
space is then rotated counter-clockwise about a unit-length axis, k, by an angle, theta.
204+
Construct a quaternion rotation matrix following the Hamilton convention (assumes the
205+
destination and local coordinate spaces are initially aligned, and the local coordinate
206+
space is then rotated counter-clockwise about a unit-length axis, k, by an angle, theta):
207207

208208
```kotlin
209209
rotationMatrix = rotation(quaternion = Float4(y = 1.0f, w = 1.0f)) // rotation of 90° around y axis
210210
```
211211

212-
213212
## Scalar APIs
214213

215214
The file `Scalar.kt` contains various helper methods to use common math operations

0 commit comments

Comments
 (0)