rotate

Rotate a vector by a quaternion.

Vector!(T, 3)
rotate
(
T
)
(
const Quaternion!(T) q
,
Vector!(T, 3) vec
)

Parameters

vec Vector!(T, 3)

rotation target vector

q Quaternion!(T)

rotation quaternion

Return Value

Type: Vector!(T, 3)

rotated vector

Meta