Merge pull request #2522 from halemmerich/graphics_utils

Graphics utils
pull/2527/head
Gordon Williams 2023-01-23 09:03:45 +00:00 committed by GitHub
commit 33914c9185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
// draw an arc between radii minR and maxR, and between angles minAngle and maxAngle centered at X,Y. All angles are radians.
exports.fillArc = function(graphics, X, Y, minR, maxR, minAngle, maxAngle, stepAngle) {
var step = stepAngle || 0.2;
var step = stepAngle || 0.21;
var angle = minAngle;
var inside = [];
var outside = [];
@ -31,5 +31,5 @@ exports.degreesToRadians = function(degrees){
}
exports.radiansToDegrees = function(radians){
return 180/Math.PI * degrees;
return 180/Math.PI * radians;
}