Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. (defun set-translation! (out matrix vec)
  2. "Copy the components of VEC to the translation column of MATRIX. This
  3. destructively modifies MATRIX."
  4. (with-matrices ((o out)
  5. (m matrix))
  6. (v3:with-vectors ((v vec))
  7. (copy-rotation! out matrix)
  8. (psetf o03 vx o13 vy o23 vz o33 m33)))
  9. out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement