Skip to content

Commit 29fddf2

Browse files
committed
Fix GetCounterClockwiseDistance() for Phaser 3
Needs correct TAU = 1 turn
1 parent b5139a9 commit 29fddf2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/math/angle/GetCounterClockwiseDistance.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
* @license {@link https://opensource.org/licenses/MIT|MIT License}
55
*/
66

7-
var MATH_CONST = require('../const');
87
var NormalizeAngle = require('./Normalize');
98

10-
var TAU = MATH_CONST.TAU;
9+
var TAU = 2 * Math.PI;
1110

1211
/**
1312
* Gets the shortest nonpositive angular distance from angle1 to angle2.

0 commit comments

Comments
 (0)