From ed9fdb02c2fe0ad1a334ebe99c1113bbc6853b72 Mon Sep 17 00:00:00 2001 From: Jason Harper Date: Tue, 12 May 2020 11:12:59 -0400 Subject: [PATCH] Added better documentation to the angle conversion function --- src/net/sourceforge/plantuml/eps/EpsGraphics.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/net/sourceforge/plantuml/eps/EpsGraphics.java b/src/net/sourceforge/plantuml/eps/EpsGraphics.java index 70a51b8a0ab..f20e81c67bd 100644 --- a/src/net/sourceforge/plantuml/eps/EpsGraphics.java +++ b/src/net/sourceforge/plantuml/eps/EpsGraphics.java @@ -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; }