Flint Engine / Guide / API Reference

rotate_around_axis

Function rotate_around_axis 

Source
pub fn rotate_around_axis(v: Vec3, axis: Vec3, angle: f32) -> Vec3
Expand description

Rotate a vector around an axis by an angle in radians (Rodrigues’ formula).