diff --git a/src/funs/transform.rs b/src/funs/transform.rs index 7e8a99a..34e37df 100644 --- a/src/funs/transform.rs +++ b/src/funs/transform.rs @@ -5,7 +5,7 @@ use funs::exp::Exp; use funs::trig::*; use matrix::Mat4; -pub fn mat4_from_rotation(theta: T, axis: Vec3) -> Mat4 { +pub pure fn mat4_from_rotation(theta: T, axis: Vec3) -> Mat4 { let rad = radians(&theta); let c: T = cos(&rad); let s: T = sin(&rad);