mirror of
https://github.com/open-goal/jak-project
synced 2026-05-25 23:35:33 -04:00
a6d5c4eda3
* change * recognize vector float product and update tests
43 lines
1015 B
Common Lisp
Vendored
43 lines
1015 B
Common Lisp
Vendored
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition for symbol EulSafe, type (array int32)
|
|
(define
|
|
EulSafe
|
|
(the-as (array int32)
|
|
(new 'static 'boxed-array :type int32 :length 4 :allocated-length 4 0 1 2 0)
|
|
)
|
|
)
|
|
|
|
;; definition for symbol EulNext, type (array int32)
|
|
(define
|
|
EulNext
|
|
(the-as (array int32)
|
|
(new 'static 'boxed-array :type int32 :length 4 :allocated-length 4 1 2 0 1)
|
|
)
|
|
)
|
|
|
|
;; definition of type euler-angles
|
|
(deftype euler-angles (vector)
|
|
()
|
|
:method-count-assert 9
|
|
:size-assert #x10
|
|
:flag-assert #x900000010
|
|
)
|
|
|
|
;; definition for method 3 of type euler-angles
|
|
;; Used lq/sq
|
|
(defmethod inspect euler-angles ((obj euler-angles))
|
|
(format #t "[~8x] ~A~%" obj 'euler-angles)
|
|
(format #t "~Tdata[4] @ #x~X~%" (&-> obj x))
|
|
(format #t "~Tx: ~f~%" (-> obj x))
|
|
(format #t "~Ty: ~f~%" (-> obj y))
|
|
(format #t "~Tz: ~f~%" (-> obj z))
|
|
(format #t "~Tw: ~f~%" (-> obj w))
|
|
(format #t "~Tquad: ~D~%" (-> obj quad))
|
|
obj
|
|
)
|
|
|
|
;; failed to figure out what this is:
|
|
0
|