Liking cljdoc? Tell your friends :D

physics.spatial.frame

Coordinate frame primitives and rigid transforms.

Coordinate frame primitives and rigid transforms.
raw docstring

->transformclj

(->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.
sourceraw docstring

composeclj

(compose t1 t2)

Compose transforms T1 followed by T2.

Compose transforms T1 followed by T2.
sourceraw docstring

identity-quaternionclj

Unit quaternion representing no rotation.

Unit quaternion representing no rotation.
sourceraw docstring

identity-transformclj

(identity-transform)
source

normalize-quaternionclj

(normalize-quaternion [w x y z :as q])

Normalize quaternion Q to unit length.

Normalize quaternion Q to unit length.
sourceraw docstring

quaternion-dotclj

(quaternion-dot [w1 x1 y1 z1] [w2 x2 y2 z2])
source

rotate-vectorclj

(rotate-vector q v)

Rotate vector V with quaternion Q.

Rotate vector V with quaternion Q.
sourceraw docstring

slerpclj

(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].
sourceraw docstring

transform-pointclj

(transform-point {:keys [translation rotation]} point)

Apply TRANSFORM to POINT (3-vector).

Apply TRANSFORM to POINT (3-vector).
sourceraw docstring

transform-vectorclj

(transform-vector {:keys [rotation]} v)

Rotate vector using the transform without applying translation.

Rotate vector using the transform without applying translation.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close