Skip to content

Commit 092ffed

Browse files
committed
Fix quaternion rotation
Fixes #7
1 parent eca610b commit 092ffed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib.ua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Qqp ← ⍉⊕/+-1⌵⊙×⟜±QqpMask⊞×∩°⍉
111111
# ? θ U
112112
RQuat ← ⍜⊙°⍉⊂⊙×:°∠÷2
113113
# Quaternion rotation implementation
114-
QRotImpl ↚ ⍜⊙°⍉↘1⍥₂Qqp⟜⍜∩°⍉(⬚0↙¯4:⍜↘¯ 1)
114+
QRotImpl ↚ ⍜⊙°⍉↘1 Qqp Qqp ⟜⍜∩°⍉(⬚0↙¯4:⍜↘¯ 1)
115115
# Rotate a 3D vector array using a quaternion array.
116116
#
117117
# To create rotation quaternions to use with `QRot`, see `RQuat`.

0 commit comments

Comments
 (0)