Coordinate frame primitives and rigid transforms.
Coordinate frame primitives and rigid transforms.
(->transform {:keys [translation rotation frame]
:or {translation [0.0 0.0 0.0] rotation identity-quaternion}})Create a transform map ensuring proper defaults.
Create a transform map ensuring proper defaults.
(compose t1 t2)Compose transforms T1 followed by T2.
Compose transforms T1 followed by T2.
Unit quaternion representing no rotation.
Unit quaternion representing no rotation.
(normalize-quaternion [w x y z :as q])Normalize quaternion Q to unit length.
Normalize quaternion Q to unit length.
(rotate-vector q v)Rotate vector V with quaternion Q.
Rotate vector V with quaternion Q.
(slerp q0 q1 t)Spherical linear interpolation between q0 and q1 by factor t in [0,1].
Spherical linear interpolation between q0 and q1 by factor t in [0,1].
(transform-point {:keys [translation rotation]} point)Apply TRANSFORM to POINT (3-vector).
Apply TRANSFORM to POINT (3-vector).
(transform-vector {:keys [rotation]} v)Rotate vector using the transform without applying translation.
Rotate vector using the transform without applying translation.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |