Files
jak-project/goal_src/engine/math/quaternion-h.gc
T
2020-11-28 20:53:13 -05:00

22 lines
578 B
Common Lisp

;;-*-Lisp-*-
(in-package goal)
;; name: quaternion-h.gc
;; name in dgo: quaternion-h
;; dgos: GAME, ENGINE
(deftype quaternion (structure)
((data float 4 :offset-assert 0)
(x float :offset 0)
(y float :offset 4)
(z float :offset 8)
(w float :offset 12)
(vec vector :inline :offset 0)
(quad uint128 :offset 0)
)
:method-count-assert 9
:size-assert #x10
:flag-assert #x900000010
)
(define *unity-quaternion* (new 'static 'quaternion :x 0.0 :y 0.0 :z 0.0 :w 1.0))