Skip to content

Commit

Permalink
Added better documentation to the angle conversion function
Browse files Browse the repository at this point in the history
  • Loading branch information
jashar-zenuity committed May 12, 2020
1 parent 114e144 commit ed9fdb0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/net/sourceforge/plantuml/eps/EpsGraphics.java
Original file line number Diff line number Diff line change
Expand Up @@ -487,14 +487,13 @@ private void simpleRectangle(double x, double y, double width, double height, bo
// }
}

/**
* 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;
}

Expand Down

0 comments on commit ed9fdb0

Please sign in to comment.