We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
quat_to_euler_angles
1 parent ba99487 commit 6928a81Copy full SHA for 6928a81
README.md
@@ -200,6 +200,24 @@ shape: (1, 3)
200
201
```
202
203
+##### Transform quaternion to Euler angles (roll, pitch, yaw)
204
+
205
+the function returns a struct with 3 fields:"roll", "pitch", "yaw"
206
207
+```
208
+df.select(
209
+ euler_angles=pl.col("rotation").transform.quat_to_euler_angles()
210
+)
211
212
+┌──────────────────────────────┐
213
+│ euler_angles │
214
+│ --- │
215
+│ struct[3] │
216
+╞══════════════════════════════╡
217
+│ {0.598806,0.000000,2.228181} │
218
+└──────────────────────────────┘
219
220
221
#### `s2`
222
223
##### Find S2 CellID of a point with longitude and latitude (with a given cell level)
0 commit comments