mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 19:09:03 +00:00
Added better documentation to the angle conversion function
This commit is contained in:
parent
114e14457b
commit
ed9fdb02c2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user