From a0b232be0abd290ab491de33944ce9935bd294a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Thu, 5 Sep 2013 13:45:11 +0200 Subject: [PATCH] Rename `Mat4::projection` to `mat4::new_perspective`. --- src/mat_spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();