/** * Get the Upper Left Point (same as getMaxPoint) * * @return the Upper Left Point */ public ProjectionPoint getUpperRightPoint() { return getMaxPoint(); }
/** * Get the Upper Left Point (same as getMaxPoint) * * @return the Upper Left Point */ public ProjectionPoint getUpperRightPoint() { return getMaxPoint(); }
/** * Get the Upper Left Point (same as getMaxPoint) * * @return the Upper Left Point */ public ProjectionPoint getUpperRightPoint() { return getMaxPoint(); }
/** * Get the Upper Left Point (same as getMaxPoint) * * @return the Upper Left Point */ public ProjectionPoint getUpperRightPoint() { return getMaxPoint(); }
/** * Get the Lower Right Point * * @return the Lower Right Point */ public ProjectionPoint getLowerRightPoint() { return new ProjectionPointImpl(getMaxPoint().getX(), getMinPoint().getY()); }
/** * Get the Upper Left Point * * @return the Upper Left Point */ public ProjectionPoint getUpperLeftPoint() { return new ProjectionPointImpl(getMinPoint().getX(), getMaxPoint().getY()); }
/** * Get the Lower Right Point * * @return the Lower Right Point */ public ProjectionPoint getLowerRightPoint() { return new ProjectionPointImpl(getMaxPoint().getX(), getMinPoint().getY()); }
/** * Get the Upper Left Point * * @return the Upper Left Point */ public ProjectionPoint getUpperLeftPoint() { return new ProjectionPointImpl(getMinPoint().getX(), getMaxPoint().getY()); }
/** * Get the Lower Right Point * * @return the Lower Right Point */ public ProjectionPoint getLowerRightPoint() { return new ProjectionPointImpl(getMaxPoint().getX(), getMinPoint().getY()); }
/** * Get the Lower Right Point * * @return the Lower Right Point */ public ProjectionPoint getLowerRightPoint() { return new ProjectionPointImpl(getMaxPoint().getX(), getMinPoint().getY()); }
/** * Get the Upper Left Point * * @return the Upper Left Point */ public ProjectionPoint getUpperLeftPoint() { return new ProjectionPointImpl(getMinPoint().getX(), getMaxPoint().getY()); }
/** * Get the Upper Left Point * * @return the Upper Left Point */ public ProjectionPoint getUpperLeftPoint() { return new ProjectionPointImpl(getMinPoint().getX(), getMaxPoint().getY()); }
/** * * Returns {@code true} if this bounding box contains {@code rect}. * * @param rect a bounding box in projection coordinates * @return {@code true} if this bounding box contains {@code rect}. */ public boolean contains(ProjectionRect rect) { boolean contained = false; // The old ProjectionRect class was based off of java.awt.Rectangle. // If the rectangles were the same, .contains(rect) returned true. // This check makes sure the old behavior is preserved. if (this.equals(rect)) { contained = true; } else { // Just check to see if corners of rect contained within this contained = (this.contains(rect.getMinPoint()) && this.contains(rect.getMaxPoint())); } return contained; }
maxx = prect.getMaxPoint().getX(); maxy = prect.getMaxPoint().getY();
maxx = prect.getMaxPoint().getX(); maxy = prect.getMaxPoint().getY();
maxx = prect.getMaxPoint().getX(); maxy = prect.getMaxPoint().getY();
ProjectionPoint max = world.getMaxPoint();
ProjectionPoint max = world.getMaxPoint();
ProjectionPoint max = world.getMaxPoint();
ProjectionPoint max = world.getMaxPoint();