A Pen by Rainer Angerer on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Coordinates Transformations | |
* | |
* http://stackoverflow.com/questions/5736398/how-to-calculate-the-svg-path-for-an-arc-of-a-circle | |
* | |
* @param centerX | |
* @param centerY | |
* @param radius | |
* @param angleInDegrees | |
* @returns {string} |