Function skeletal_animation::math::quaternion::axis_angle [] [src]

pub fn axis_angle<T>(axis: [T; 3], angle: T) -> (T, [T; 3]) where T: Float

Construct a quaternion for the given angle (in radians) about the given axis. Axis must be a unit vector.