We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f6abd3 commit b17248cCopy full SHA for b17248c
irteus/irtmath.l
@@ -164,7 +164,7 @@
164
165
166
(defun matrix2quaternion (m)
167
- "returns quaternion of given matrix"
+ "returns quaternion (w x y z) of given matrix"
168
(let (q0 q1 q2 q3 mq^2
169
(q0^2 (/ (+ 1 (aref m 0 0) (aref m 1 1) (aref m 2 2)) 4))
170
(q1^2 (/ (+ 1 (aref m 0 0) (- (aref m 1 1)) (- (aref m 2 2))) 4))
@@ -196,7 +196,7 @@
196
(float-vector q0 q1 q2 q3)))
197
198
(defun quaternion2matrix (q)
199
- "returns matrix of given quaternion"
+ "returns matrix of given quaternion (w x y z)"
200
(let ((q0 (elt q 0)) (q1 (elt q 1)) (q2 (elt q 2)) (q3 (elt q 3)))
201
(unless (eps= (v. q q) 1.0 0.01)
202
(warning-message 1 ";; quaternion2matrix : invalid input ~A, the norm is not 1~%" q))
0 commit comments