Skip to content

Commit 6928a81

Browse files
committed
add quat_to_euler_angles to README
1 parent ba99487 commit 6928a81

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,24 @@ shape: (1, 3)
200200
201201
```
202202

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+
203221
#### `s2`
204222

205223
##### Find S2 CellID of a point with longitude and latitude (with a given cell level)

0 commit comments

Comments
 (0)