Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up unused code #6

Merged
merged 1 commit into from
Aug 22, 2022
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,6 @@ private final int calculateRequiredRings(Boundary boundary) {
final double maxCoordinatesDistance = Harversine.distance(maxCoordinates, centroidCoordinates);

// Determine requiredTessellationDistance: the larger distance == the requiredTessellationDistance
final double boundaryDistance = boundary.greatCircleDistance();

final double requiredTessellationDistance;
if (minCoordinatesDistance >= maxCoordinatesDistance) {
requiredTessellationDistance = minCoordinatesDistance;
Expand All @@ -552,8 +550,7 @@ private final int calculateRequiredRings(Boundary boundary) {
* - requiredAxialHexagons is the minimum amount of hexagons that required to stack
* up (from edges) in those 3 axes to cover the boundary largest diameter.
*/
// final int requiredAxialHexagons = (int) Math.ceil(requiredTessellationDistance / neighborDistance); // round up
final int requiredAxialHexagons = (int) Math.ceil(boundaryDistance / neighborDistance); // round up
final int requiredAxialHexagons = (int) Math.ceil(requiredTessellationDistance / neighborDistance); // round up

/*
* Calculate the Minimum Required Rings
Expand Down