@Test public void testAdd() { ProjectionRect rect = new ProjectionRect().toBuilder().add(0, 0).build(); assertThat(rect).isEqualTo(new ProjectionRect()); ProjectionRect rect3 = new ProjectionRect().toBuilder().add(ProjectionPoint.create(0, 6000)).build(); assertThat(rect3).isEqualTo(new ProjectionRect("-5000, -5000, 10000, 11000")); ProjectionRect rect2 = new ProjectionRect().toBuilder().add(10000, 1000).build(); assertThat(rect2).isEqualTo(new ProjectionRect("-5000, -5000, 15000, 10000")); }
public ProjectionRect.Builder toBuilder() { return builder().setX(this.x).setY(this.y).setWidth(this.width).setHeight(this.height); }
ProjectionRect { public ProjectionRect.Builder toBuilder() { return builder().setX(this.x).setY(this.y).setWidth(this.width).setHeight(this.height); } }
ProjectionRect { public ProjectionRect.Builder toBuilder() { return builder().setX(this.x).setY(this.y).setWidth(this.width).setHeight(this.height); } ProjectionRect();  ProjectionRect(ProjectionPoint corner1, ProjectionPoint corner2);  ProjectionRect(ProjectionPoint minimum, double width, double height);  ProjectionRect(double x1, double y1, double x2, double y2);  ProjectionRect(String spec); private  ProjectionRect(ProjectionRect.Builder builder); }
ProjectionRect { public ProjectionRect.Builder toBuilder() { return builder().setX(this.x).setY(this.y).setWidth(this.width).setHeight(this.height); } ProjectionRect();  ProjectionRect(ProjectionPoint corner1, ProjectionPoint corner2);  ProjectionRect(ProjectionPoint minimum, double width, double height);  ProjectionRect(double x1, double y1, double x2, double y2);  ProjectionRect(String spec); private  ProjectionRect(ProjectionRect.Builder builder); @Deprecated double getX(); @Deprecated double getY(); double getWidth(); double getHeight(); double getMinX(); double getMinY(); double getMaxX(); double getMaxY(); double getCenterX(); double getCenterY(); boolean isEmpty(); boolean intersects(ProjectionRect r); boolean intersects(double x, double y, double w, double h); static ProjectionRect intersect(ProjectionRect src1, ProjectionRect src2); boolean contains(ProjectionPoint point); boolean contains(ProjectionRect rect); ProjectionPoint getLowerRightPoint(); ProjectionPoint getUpperRightPoint(); ProjectionPoint getLowerLeftPoint(); ProjectionPoint getUpperLeftPoint(); ProjectionPoint getMinPoint(); ProjectionPoint getMaxPoint(); String toString(); String toString2(int ndec); String toStringSpec(); @Override boolean equals(Object o); @Override int hashCode(); boolean nearlyEquals(ProjectionRect other); boolean nearlyEquals(ProjectionRect other, double maxRelDiff); ProjectionRect.Builder toBuilder(); static Builder builder(); static Builder builder(double x1, double y1, double x2, double y2); }
ProjectionRect { public ProjectionRect.Builder toBuilder() { return builder().setX(this.x).setY(this.y).setWidth(this.width).setHeight(this.height); } ProjectionRect();  ProjectionRect(ProjectionPoint corner1, ProjectionPoint corner2);  ProjectionRect(ProjectionPoint minimum, double width, double height);  ProjectionRect(double x1, double y1, double x2, double y2);  ProjectionRect(String spec); private  ProjectionRect(ProjectionRect.Builder builder); @Deprecated double getX(); @Deprecated double getY(); double getWidth(); double getHeight(); double getMinX(); double getMinY(); double getMaxX(); double getMaxY(); double getCenterX(); double getCenterY(); boolean isEmpty(); boolean intersects(ProjectionRect r); boolean intersects(double x, double y, double w, double h); static ProjectionRect intersect(ProjectionRect src1, ProjectionRect src2); boolean contains(ProjectionPoint point); boolean contains(ProjectionRect rect); ProjectionPoint getLowerRightPoint(); ProjectionPoint getUpperRightPoint(); ProjectionPoint getLowerLeftPoint(); ProjectionPoint getUpperLeftPoint(); ProjectionPoint getMinPoint(); ProjectionPoint getMaxPoint(); String toString(); String toString2(int ndec); String toStringSpec(); @Override boolean equals(Object o); @Override int hashCode(); boolean nearlyEquals(ProjectionRect other); boolean nearlyEquals(ProjectionRect other, double maxRelDiff); ProjectionRect.Builder toBuilder(); static Builder builder(); static Builder builder(double x1, double y1, double x2, double y2);  }