Files
jak-project/goal_src/jakx/engine/math/transform-h.gc
2026-05-08 18:54:05 -04:00

34 lines
817 B
Common Lisp

;;-*-Lisp-*-
(in-package goal)
;; name: transform-h.gc
;; name in dgo: transform-h
;; dgos: ENGINE, GAME
;; DECOMP BEGINS
(deftype transformq (structure)
"Transformation. w components of vectors should be 1.0
This can represent any rotation, translation, and scaling.
Note that the scaling is applied before rotation
(meaning it scales along the axes of the pre-transformed frame)."
((trans vector :inline)
(rot vector :inline)
(scale vector :inline)
)
)
(deftype trsq (basic)
"Like transform, but it's a basic.
Note that the trsq child type overrides this rotation with a quaternion.
usage of the plain trs is very limited, at least in Jak 1."
((trans vector :inline)
(rot vector :inline)
(scale vector :inline)
)
(:methods
(new (symbol type) _type_)
)
)