;;-*-Lisp-*- (in-package goal) ;; definition for symbol EulSafe, type (array int32) (define EulSafe "Maybe euler angle storage orders? What is this naming convention?" (new 'static 'boxed-array :type int32 0 1 2 0) ) ;; definition for symbol EulNext, type (array int32) (define EulNext (new 'static 'boxed-array :type int32 1 2 0 1)) ;; definition of type euler-angles (deftype euler-angles (vector) "Just uses the same xyzw and data array as vector. The `w` stores an integer that seems to have bitfields for... something? Like maybe the order? Euler angles are mostly unused, and the code is a bit of disaster." () ) ;; definition for method 3 of type euler-angles ;; INFO: Used lq/sq (defmethod inspect ((this euler-angles)) (when (not this) (set! this this) (goto cfg-4) ) (format #t "[~8x] ~A~%" this 'euler-angles) (format #t "~1Tdata[4] @ #x~X~%" (&-> this x)) (format #t "~1Tx: ~f~%" (-> this x)) (format #t "~1Ty: ~f~%" (-> this y)) (format #t "~1Tz: ~f~%" (-> this z)) (format #t "~1Tw: ~f~%" (-> this w)) (format #t "~1Tquad: ~D~%" (-> this quad)) (label cfg-4) this ) ;; failed to figure out what this is: 0