mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 08:22:30 +02:00
Change 3.14 literal to Math.PI
This commit is contained in:
parent
5394c092d0
commit
8976f18290
1 changed files with 1 additions and 1 deletions
|
@ -727,7 +727,7 @@ function mouseClickEvent(event) {
|
|||
var x = Vec3.dot(Vec3.subtract(P, A), B);
|
||||
|
||||
var angularSize = 2 * Math.atan(halfDiagonal / Vec3.distance(Camera.getPosition(), properties.position)) *
|
||||
180 / 3.14;
|
||||
180 / Math.PI;
|
||||
|
||||
var sizeOK = (allowLargeModels || angularSize < MAX_ANGULAR_SIZE) &&
|
||||
(allowSmallModels || angularSize > MIN_ANGULAR_SIZE);
|
||||
|
|
Loading…
Reference in a new issue