X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmatrix.cpp;h=cac4a4fcd99afe6d2e110c80030aad39dd9352c1;hb=8141d1e1cf5de45d1e8d640f3f8643ee748292dc;hp=092d2c62ca149cb73764d8c40ab00d7382a8f874;hpb=cdf6744cb3a73030bc767a23b7ed5215919e53c5;p=libs%2Fgl.git diff --git a/source/matrix.cpp b/source/matrix.cpp index 092d2c62..cac4a4fc 100644 --- a/source/matrix.cpp +++ b/source/matrix.cpp @@ -140,9 +140,9 @@ Matrix Matrix::frustum_centered(double w, double h, double n, double f) return frustum(-w/2, w/2, -h/2, h/2, n, f); } -Matrix Matrix::perspective(double h, double a, double n, double f) +Matrix Matrix::perspective(const Angle &h, double a, double n, double f) { - double hh = tan(h/2)*n; + double hh = tan(h/2.0)*n; return frustum(-hh*a, hh*a, -hh, hh, n, f); }