diff --git a/src/mat_spec.rs b/src/mat_spec.rs index 99305e0a..75d6e57a 100644 --- a/src/mat_spec.rs +++ b/src/mat_spec.rs @@ -148,7 +148,7 @@ impl Row> for Mat3 { impl mat::Mat4 { /// Computes a projection matrix given the frustrum near plane width, height, the field of /// view, and the distance to the clipping planes (`znear` and `zfar`). - pub fn projection(width: N, height: N, fov: N, znear: N, zfar: N) -> mat::Mat4 { + pub fn new_perspective(width: N, height: N, fov: N, znear: N, zfar: N) -> mat::Mat4 { let aspect = width / height; let _1: N = One::one();