]> git.tdb.fi Git - libs/gl.git/blobdiff - source/matrix.cpp
Use the matrix classes internally
[libs/gl.git] / source / matrix.cpp
index d8f018aaf4835814c4736ac389f8e7426dd6279d..a4b60dc604a17fb5b95bbd7a5262628b26259408 100644 (file)
@@ -256,7 +256,7 @@ Matrix Matrix::frustum_centered(double w, double h, double n, double f)
 
 Matrix Matrix::perspective(double h, double a, double n, double f)
 {
-       double hh = tan(h)*n;
+       double hh = tan(h/2)*n;
        return frustum(-hh*a, hh*a, -hh, hh, n, f);
 }