diff --git a/src/funs/projection.rs b/src/funs/projection.rs index 3b1e2c0..d13e0d1 100644 --- a/src/funs/projection.rs +++ b/src/funs/projection.rs @@ -12,7 +12,7 @@ use num::ext::FloatExt; * can be found [here](http://www.opengl.org/wiki/GluPerspective_code). */ #[inline(always)] -pure fn perspective>(fovy: A, aspectRatio: T, near: T, far: T) -> Mat4 { +pub pure fn perspective>(fovy: A, aspectRatio: T, near: T, far: T) -> Mat4 { let ymax = near * tan(&fovy.to_radians()); let xmax = ymax * aspectRatio; @@ -26,7 +26,7 @@ pure fn perspective>(fovy: A, aspectRatio: T, near: * (http://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml) function. */ #[inline(always)] -pure fn frustum(left: T, right: T, bottom: T, top: T, near: T, far: T) -> Mat4 { +pub pure fn frustum(left: T, right: T, bottom: T, top: T, near: T, far: T) -> Mat4 { let _0: T = cast(0); let _2: T = cast(2);