mirror of https://github.com/apache/lucene.git
Fix up formatting
This commit is contained in:
parent
9bca7a70e1
commit
1e236090af
|
@ -17,11 +17,8 @@
|
|||
package org.apache.lucene.spatial3d.geom;
|
||||
|
||||
/**
|
||||
* Generic shape that supports bounds. This describes methods that help
|
||||
* shapes compute their bounds.
|
||||
* Generic shape that supports bounds. This describes methods that help shapes compute their bounds.
|
||||
*
|
||||
* @lucene.experimental
|
||||
*/
|
||||
public interface GeoBounds extends Bounded, Membership, PlanetObject {
|
||||
|
||||
}
|
||||
public interface GeoBounds extends Bounded, Membership, PlanetObject {}
|
||||
|
|
|
@ -189,7 +189,8 @@ class GeoStandardPath extends GeoBasePath {
|
|||
onlyEndpoint.circlePlane.getSampleIntersectionPoint(planetModel, normalPlane)
|
||||
};
|
||||
} else {
|
||||
// Create segment endpoints. Use an appropriate constructor for the start and end of the path.
|
||||
// Create segment endpoints. Use an appropriate constructor for the start and end of the
|
||||
// path.
|
||||
for (int i = 0; i < segments.size(); i++) {
|
||||
final PathSegment currentSegment = segments.get(i);
|
||||
|
||||
|
@ -214,7 +215,8 @@ class GeoStandardPath extends GeoBasePath {
|
|||
&& prevSegment.endCutoffPlane.isWithin(currentSegment.LLHC)
|
||||
&& currentSegment.startCutoffPlane.isWithin(prevSegment.URHC)
|
||||
&& currentSegment.startCutoffPlane.isWithin(prevSegment.LRHC)) {
|
||||
// The planes are identical. We wouldn't need a circle at all except for the possibility of
|
||||
// The planes are identical. We wouldn't need a circle at all except for the possibility
|
||||
// of
|
||||
// backing up, which is hard to detect here.
|
||||
final SegmentEndpoint midEndpoint =
|
||||
new CutoffSingleCircleSegmentEndpoint(
|
||||
|
@ -264,7 +266,7 @@ class GeoStandardPath extends GeoBasePath {
|
|||
|
||||
rootComponent = treeBuilder.getRoot();
|
||||
|
||||
//System.out.println("Root component: "+rootComponent);
|
||||
// System.out.println("Root component: "+rootComponent);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -384,7 +386,8 @@ class GeoStandardPath extends GeoBasePath {
|
|||
if (rootComponent == null) {
|
||||
return Double.POSITIVE_INFINITY;
|
||||
}
|
||||
return distanceStyle.fromAggregationForm(rootComponent.pathDeltaDistance(distanceStyle, x, y, z));
|
||||
return distanceStyle.fromAggregationForm(
|
||||
rootComponent.pathDeltaDistance(distanceStyle, x, y, z));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -627,7 +630,8 @@ class GeoStandardPath extends GeoBasePath {
|
|||
bounds = new XYZBounds();
|
||||
child1.getBounds(bounds);
|
||||
child2.getBounds(bounds);
|
||||
//System.out.println("Constructed PathNode with child1="+child1+" and child2="+child2+" with computed bounds "+bounds);
|
||||
// System.out.println("Constructed PathNode with child1="+child1+" and child2="+child2+" with
|
||||
// computed bounds "+bounds);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -743,7 +747,7 @@ class GeoStandardPath extends GeoBasePath {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PathNode ("+child1+") ("+child2+")";
|
||||
return "PathNode (" + child1 + ") (" + child2 + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -872,7 +876,7 @@ class GeoStandardPath extends GeoBasePath {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SegmentEndpoint ("+point+")";
|
||||
return "SegmentEndpoint (" + point + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1718,7 +1722,7 @@ class GeoStandardPath extends GeoBasePath {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PathSegment ("+ULHC+", "+URHC+", "+LRHC+", "+LLHC+")";
|
||||
return "PathSegment (" + ULHC + ", " + URHC + ", " + LRHC + ", " + LLHC + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue