Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cz/cvut/fit/gephi/layeredlayout/LayeredLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private void renderOrbit(Set<Node> currentOrbit, float startX, float startY, dou
*/
double currentAngle = 0;
// steady positioning on orbit
double shift = 360 / length;
double shift = 360. / length;
int i = 0;
for (Node o : currentOrbit) {
// next position on the orbit
Expand Down Expand Up @@ -184,9 +184,9 @@ private void renderOrbit(Set<Node> currentOrbit, float startX, float startY, dou

} else {

int currentAngle = 0;
double currentAngle = 0;
// steady positioning on orbit
int shift = 360 / currentOrbit.size();
double shift = 360. / currentOrbit.size();
for (Node o : currentOrbit) {
// equation of circle
// x = x0 + r*cos(a)
Expand Down