Rename Mat4::projection to mat4::new_perspective.

This commit is contained in:
Sébastien Crozet 2013-09-05 13:45:11 +02:00
parent 628066cdc8
commit a0b232be0a

View File

@ -148,7 +148,7 @@ impl<N: Clone> Row<Vec3<N>> for Mat3<N> {
impl<N: Real + NumCast + Zero + One> mat::Mat4<N> {
/// 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<N> {
pub fn new_perspective(width: N, height: N, fov: N, znear: N, zfar: N) -> mat::Mat4<N> {
let aspect = width / height;
let _1: N = One::one();