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 R2RectS2PaddedCell. bound()Returns the bound for this cell (including padding.)static R2RectR2Rect. empty()Returns a new instance of the canonical empty rectangle.R2RectR2Rect. expanded(double margin)Returns a rectangle that has been expanded on both sides by the given margin.R2RectR2Rect. 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 R2RectR2Rect. fromCenterSize(R2Vector center, R2Vector size)Returns a new rectangle from a center point and size in each dimension.static R2RectR2Rect. fromPoint(R2Vector p)Returns a rectangle containing a single point.static R2RectR2Rect. fromPointPair(R2Vector p1, R2Vector p2)Returns the minimal bounding rectangle containing the two given points.R2RectS2CellId. getBoundST()Returns the bounds of this cell in (s,t)-space.R2RectS2Cell. getBoundUV()Returns the bounds of this cell in (u,v)-space.R2RectS2CellId. getBoundUV()Returns the bounds of this cell in (u,v)-space.R2RectR2Rect. intersection(R2Rect other)Returns the smallest rectangle containing the intersection of this rectangle and the given rectangle.R2RectS2PaddedCell. middle()Return the "middle" of the padded cell, defined as the rectangle that belongs to all four children.R2RectR2Rect. 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 voidR2Rect. addRect(R2Rect other)Expand the rectangle to include the given other rectangle.booleanR2Rect. approxEquals(R2Rect other)Returns true if the x- and y-intervals of the two rectangles are the same up to the given tolerance.booleanR2Rect. approxEquals(R2Rect other, double maxError)Returns true if the given rectangles are equal to withinmaxError.booleanR2Rect. contains(R2Rect other)Returns true if and only if this rectangle contains the given other rectangle.abstract R1IntervalR2Rect.Axis. getInterval(R2Rect rect)booleanR2Rect. 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).booleanR2Rect. 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.R2RectR2Rect. intersection(R2Rect other)Returns the smallest rectangle containing the intersection of this rectangle and the given rectangle.booleanR2Rect. intersects(R2Rect other)Returns true if this rectangle and the given other rectangle have any points in common.S2CellIdS2PaddedCell. shrinkToFit(R2Rect rect)Returns the smallest cell that contains all descendants of this cell whose bounds intersect "rect".R2RectR2Rect. 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 Constructor Description R2Rect(R2Rect rect)Copy constructor.
-