Skip to content

Commit b17248c

Browse files
committed
[irtmath.l] add comment to quaternion
1 parent 0f6abd3 commit b17248c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

irteus/irtmath.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164

165165

166166
(defun matrix2quaternion (m)
167-
"returns quaternion of given matrix"
167+
"returns quaternion (w x y z) of given matrix"
168168
(let (q0 q1 q2 q3 mq^2
169169
(q0^2 (/ (+ 1 (aref m 0 0) (aref m 1 1) (aref m 2 2)) 4))
170170
(q1^2 (/ (+ 1 (aref m 0 0) (- (aref m 1 1)) (- (aref m 2 2))) 4))
@@ -196,7 +196,7 @@
196196
(float-vector q0 q1 q2 q3)))
197197

198198
(defun quaternion2matrix (q)
199-
"returns matrix of given quaternion"
199+
"returns matrix of given quaternion (w x y z)"
200200
(let ((q0 (elt q 0)) (q1 (elt q 1)) (q2 (elt q 2)) (q3 (elt q 3)))
201201
(unless (eps= (v. q q) 1.0 0.01)
202202
(warning-message 1 ";; quaternion2matrix : invalid input ~A, the norm is not 1~%" q))

0 commit comments

Comments
 (0)