Fix purity

This commit is contained in:
Brendan Zabarauskas 2012-11-11 13:36:28 +10:00
parent 9d73f0e94b
commit 683ebf88eb

View file

@ -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);