@@ -255,17 +255,17 @@ public String toString() {
255
255
StringBuilder builder = new StringBuilder ();
256
256
builder .append ("(" );
257
257
builder .append (upperLeft .toString ()).append (", " );
258
- builder .append ("height" ).append (" = " ).append (height ).append (", " );
259
- builder .append ("width" ).append (" = " ).append (width );
258
+ builder .append ("height" ).append ("= " ).append (height ).append (", " );
259
+ builder .append ("width" ).append ("= " ).append (width );
260
260
builder .append (")" );
261
261
return builder .toString ();
262
262
}
263
263
}
264
264
265
265
public static class XYPoint implements Comparable <XYPoint > {
266
266
267
- private double x = Double .NEGATIVE_INFINITY ;
268
- private double y = Double .NEGATIVE_INFINITY ;
267
+ public double x = Double .NEGATIVE_INFINITY ;
268
+ public double y = Double .NEGATIVE_INFINITY ;
269
269
270
270
public XYPoint (double x , double y ) {
271
271
this .x = x ;
@@ -352,7 +352,7 @@ public static <T extends XYPoint> String getString(QuadTree<T> tree) {
352
352
private static <T extends Comparable <T >> String getString (QuadNode node , String prefix , boolean isTail ) {
353
353
StringBuilder builder = new StringBuilder ();
354
354
355
- builder .append (prefix + (isTail ? "└── " : "├── " ) + " node=" + node .toString () + "\n " );
355
+ builder .append (prefix + (isTail ? "└── " : "├── " ) + " node={ " + node .toString () + "} \n " );
356
356
List <QuadNode > children = null ;
357
357
if (node .northWest != null || node .northEast != null || node .southWest != null || node .southEast != null ) {
358
358
children = new ArrayList <QuadNode >(4 );
0 commit comments