Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Math.PI -> kPI.

  • Loading branch information...
commit d5c3a8587343603d0737140747fd0fecf052c715 1 parent eda673b
@deanm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 pregl.js
View
4 pregl.js
@@ -366,7 +366,7 @@ var PreGL = (function() {
// ratio, and the z near and far planes.
Mat4.prototype.perspective = function(fovy, aspect, znear, zfar) {
// This could also be done reusing the frustum calculation:
- // var ymax = znear * Math.tan(fovy * Math.PI / 360.0);
+ // var ymax = znear * Math.tan(fovy * kPI / 360.0);
// var ymin = -ymax;
//
// var xmin = ymin * aspect;
@@ -374,7 +374,7 @@ var PreGL = (function() {
//
// return makeFrustumAffine(xmin, xmax, ymin, ymax, znear, zfar);
- var f = 1.0 / Math.tan(fovy * Math.PI / 360.0);
+ var f = 1.0 / Math.tan(fovy * kPI / 360.0);
this.mult4x4(
f/aspect, 0, 0, 0,
0, f, 0, 0,
Please sign in to comment.
Something went wrong with that request. Please try again.