fromAxisAngle
fun fromAxisAngle(axis: Cartesian3, angle: Double, result: Quaternion? = definedExternally): Quaternion(source)
Computes a quaternion representing a rotation around an axis.
Return
The modified result parameter or a new Quaternion instance if one was not provided.
Parameters
axis
The axis of rotation.
angle
The angle in radians to rotate around the axis.
result
The object onto which to store the result.