Skip to main content

rotation_mat

Function rotation_mat 

Source
fn rotation_mat(vec: [f64; 3], theta: f64) -> [[f64; 3]; 3]
Expand description

Rodrigues’ rotation formula: rotate by angle theta around axis vec. Returns 3x3 rotation matrix.