jak-project/goal_src/engine/math/euler-h.gc
water111 5b24e43143
Change syntax for boxed array to support different length and allocated-length (#568)
* change syntax for boxed array

* fix test and make the flava thing kind of work
2021-06-07 20:22:06 -04:00

23 lines
630 B
Common Lisp

;;-*-Lisp-*-
(in-package goal)
;; name: euler-h.gc
;; name in dgo: euler-h
;; dgos: GAME, ENGINE
;; maybe euler angle storage orders?
(define EulSafe (new 'static 'boxed-array :type int32 :length 4
0 1 2 0))
(define EulNext (new 'static 'boxed-array :type int32 :length 4
1 2 0 1))
;; just uses the same xyzw and data array as vector.
;; the w stores a float that should be an integer that seems to have
;; bitfields for... something? Like maybe the order?
(deftype euler-angles (vector)
()
:method-count-assert 9
:size-assert #x10
:flag-assert #x900000010
)