Quaternion.axisAngle

Returns rotation quaternion decided by its rotation axis and angle.

struct Quaternion(T)
static
axisAngle
(
const Vector!(T, 3) axis
,
const Angle rad
)
if (
__traits(isArithmetic, T)
)

Parameters

axis Vector!(T, 3)

rotation axis vector, which must be normalized

Return Value

rotation quaternion

Meta