1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-25 14:27:33 +00:00

Added better documentation to the angle conversion function

This commit is contained in:
Jason Harper 2020-05-12 11:12:59 -04:00
parent 114e14457b
commit ed9fdb02c2

View File

@ -487,14 +487,13 @@ public class EpsGraphics {
// }
}
/**
* Converts a counter clockwise angle to a clockwise
* angle. i.e. 0 -> 360, 90 -> 270, 180 -> 180, 270 -> 90
* @param counterClockwise counter clockwise angle in degrees
* @return clockwise angle in degrees
*/
private double convertToClockwiseAngle(double counterClockwise) {
// 0 -> 0
// 45 -> 315
// 90 -> 270
// 180 -> 180
// 270 -> 90
return 360.0 - counterClockwise;
}