Uses of Class
com.google.common.geometry.R2Rect

  • Uses of R2Rect in com.google.common.geometry

    Methods in com.google.common.geometry that return R2Rect
    Modifier and Type
    Method
    Description
    S2PaddedCell.bound()
    Returns the bound for this cell (including padding.)
    static R2Rect
    R2Rect.empty()
    Returns a new instance of the canonical empty rectangle.
    R2Rect.expanded(double margin)
    Returns a rectangle that has been expanded on both sides by the given margin.
    R2Rect.expanded(R2Vector margin)
    Return a rectangle that has been expanded on each side in the x-direction by margin.x(), and on each side in the y-direction by margin.y().
    static R2Rect
    R2Rect.fromCenterSize(R2Vector center, R2Vector size)
    Returns a new rectangle from a center point and size in each dimension.
    static R2Rect
    R2Rect.fromPoint(R2Vector p)
    Returns a rectangle containing a single point.
    static R2Rect
    Returns the minimal bounding rectangle containing the two given points.
    S2CellId.getBoundST()
    Returns the bounds of this cell in (s,t)-space.
    S2Cell.getBoundUV()
    Returns the bounds of this cell in (u,v)-space.
    S2CellId.getBoundUV()
    Returns the bounds of this cell in (u,v)-space.
    R2Rect.intersection(R2Rect other)
    Returns the smallest rectangle containing the intersection of this rectangle and the given rectangle.
    S2PaddedCell.middle()
    Return the "middle" of the padded cell, defined as the rectangle that belongs to all four children.
    R2Rect.union(R2Rect other)
    Returns the smallest rectangle containing the union of this rectangle and the given rectangle.
    Methods in com.google.common.geometry with parameters of type R2Rect
    Modifier and Type
    Method
    Description
    void
    R2Rect.addRect(R2Rect other)
    Expand the rectangle to include the given other rectangle.
    boolean
    R2Rect.approxEquals(R2Rect other)
    Returns true if the x- and y-intervals of the two rectangles are the same up to the given tolerance.
    boolean
    R2Rect.approxEquals(R2Rect other, double maxError)
    Returns true if the given rectangles are equal to within maxError.
    boolean
    R2Rect.contains(R2Rect other)
    Returns true if and only if this rectangle contains the given other rectangle.
    abstract R1Interval
    R2Rect.Axis.getInterval(R2Rect rect)
     
    boolean
    R2Rect.interiorContains(R2Rect other)
    Returns true if and only if the interior of this rectangle contains all points of the given other rectangle (including its boundary).
    boolean
    R2Rect.interiorIntersects(R2Rect other)
    Return true if and only if the interior of this rectangle intersects any point (including the boundary) of the given other rectangle.
    R2Rect.intersection(R2Rect other)
    Returns the smallest rectangle containing the intersection of this rectangle and the given rectangle.
    boolean
    R2Rect.intersects(R2Rect other)
    Returns true if this rectangle and the given other rectangle have any points in common.
    S2PaddedCell.shrinkToFit(R2Rect rect)
    Returns the smallest cell that contains all descendants of this cell whose bounds intersect "rect".
    R2Rect.union(R2Rect other)
    Returns the smallest rectangle containing the union of this rectangle and the given rectangle.
    Constructors in com.google.common.geometry with parameters of type R2Rect
    Modifier
    Constructor
    Description
     
    R2Rect(R2Rect rect)
    Copy constructor.