This commit is contained in:
Jan Nicklas 2015-07-10 11:53:35 +02:00
parent 961fd11098
commit 0bb3a9b024

View File

@ -1283,8 +1283,8 @@
// Normalize all angles to 0 - 2*PI (0 - 360°) // Normalize all angles to 0 - 2*PI (0 - 360°)
var pointRelativeAngle = pointRelativePosition.angle % (Math.PI * 2), var pointRelativeAngle = pointRelativePosition.angle % (Math.PI * 2),
var startAngle = (Math.PI * 2 + this.startAngle) % (Math.PI * 2), startAngle = (Math.PI * 2 + this.startAngle) % (Math.PI * 2),
var endAngle = (Math.PI * 2 + this.endAngle) % (Math.PI * 2) || 360; endAngle = (Math.PI * 2 + this.endAngle) % (Math.PI * 2) || 360;
// Calculate wether the pointRelativeAngle is between the start and the end angle // Calculate wether the pointRelativeAngle is between the start and the end angle
var betweenAngles = (endAngle < startAngle) ? var betweenAngles = (endAngle < startAngle) ?