a </> b
Hadamard (element-wise) division of a
by b
.
val quaternion : Quaternion.t -> Vec3.t -> Vec3.t
quaternion q t
Rotate t
with the quaternion q
.
val quaternion_about_pt : Quaternion.t -> Vec3.t -> Vec3.t -> Vec3.t
quaternion_about_pt q p t
Translates t
along the vector p
, rotating the resulting vector with the quaternion q
, and finally, moving back along the vector p
. Functionally, rotating about the point in space arrived at by the initial translation along the vector p
.