Fix purity
This commit is contained in:
parent
9d73f0e94b
commit
683ebf88eb
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ use funs::exp::Exp;
|
|||
use funs::trig::*;
|
||||
use matrix::Mat4;
|
||||
|
||||
pub fn mat4_from_rotation<T:Copy Num NumCast AngleConv Trig>(theta: T, axis: Vec3<T>) -> Mat4<T> {
|
||||
pub pure fn mat4_from_rotation<T:Copy Num NumCast AngleConv Trig>(theta: T, axis: Vec3<T>) -> Mat4<T> {
|
||||
let rad = radians(&theta);
|
||||
let c: T = cos(&rad);
|
||||
let s: T = sin(&rad);
|
||||
|
|
Loading…
Reference in a new issue