Uses of Class
com.badlogic.gdx.math.Rectangle
-
-
Uses of Rectangle in com.badlogic.gdx.graphics.g2d
Subclasses of Rectangle in com.badlogic.gdx.graphics.g2d Modifier and Type Class Description static classPixmapPacker.PixmapPackerRectangleMethods in com.badlogic.gdx.graphics.g2d that return Rectangle Modifier and Type Method Description RectanglePolygonSprite. getBoundingRectangle()Returns the bounding axis alignedRectanglethat bounds this sprite.RectangleSprite. getBoundingRectangle()Returns the bounding axis alignedRectanglethat bounds this sprite.RectanglePixmapPacker. getRect(java.lang.String name)RectanglePixmapPacker. pack(Pixmap image)Inserts the pixmap without a name.RectanglePixmapPacker. pack(java.lang.String name, Pixmap image)Inserts the pixmap.Methods in com.badlogic.gdx.graphics.g2d with parameters of type Rectangle Modifier and Type Method Description PixmapPacker.PagePixmapPacker.GuillotineStrategy. pack(PixmapPacker packer, java.lang.String name, Rectangle rect)PixmapPacker.PagePixmapPacker.PackStrategy. pack(PixmapPacker packer, java.lang.String name, Rectangle rect)Returns the page the rectangle should be placed in and modifies the specified rectangle position.PixmapPacker.PagePixmapPacker.SkylineStrategy. pack(PixmapPacker packer, java.lang.String name, Rectangle rect) -
Uses of Rectangle in com.badlogic.gdx.maps.objects
Methods in com.badlogic.gdx.maps.objects that return Rectangle Modifier and Type Method Description RectangleRectangleMapObject. getRectangle() -
Uses of Rectangle in com.badlogic.gdx.maps.tiled.renderers
Fields in com.badlogic.gdx.maps.tiled.renderers declared as Rectangle Modifier and Type Field Description protected RectangleOrthoCachedTiledMapRenderer. cacheBoundsprotected RectangleBatchTiledMapRenderer. imageBoundsprotected RectangleBatchTiledMapRenderer. viewBoundsprotected RectangleOrthoCachedTiledMapRenderer. viewBoundsMethods in com.badlogic.gdx.maps.tiled.renderers that return Rectangle Modifier and Type Method Description RectangleBatchTiledMapRenderer. getViewBounds() -
Uses of Rectangle in com.badlogic.gdx.math
Fields in com.badlogic.gdx.math declared as Rectangle Modifier and Type Field Description static RectangleRectangle. tmpStatic temporary rectangle.static RectangleRectangle. tmp2Static temporary rectangle.Methods in com.badlogic.gdx.math that return Rectangle Modifier and Type Method Description RectangleRectangle. fitInside(Rectangle rect)Fits this rectangle into another rectangle while maintaining aspect ratio.RectangleRectangle. fitOutside(Rectangle rect)Fits this rectangle around another rectangle while maintaining aspect ratio.RectangleRectangle. fromString(java.lang.String v)Sets thisRectangleto the value represented by the specified string according to the format oftoString().RectanglePolygon. getBoundingRectangle()Returns an axis-aligned bounding box of this polygon.RectanglePolyline. getBoundingRectangle()Returns an axis-aligned bounding box of this polyline.RectangleRectangle. merge(float x, float y)Merges this rectangle with a point.RectangleRectangle. merge(Rectangle rect)Merges this rectangle with the other rectangle.RectangleRectangle. merge(Vector2 vec)Merges this rectangle with a point.RectangleRectangle. merge(Vector2[] vecs)Merges this rectangle with a list of points.RectangleRectangle. set(float x, float y, float width, float height)RectangleRectangle. set(Rectangle rect)Sets the values of the given rectangle to this rectangle.RectangleRectangle. setCenter(float x, float y)Moves this rectangle so that its center point is located at a given positionRectangleRectangle. setCenter(Vector2 position)Moves this rectangle so that its center point is located at a given positionRectangleRectangle. setHeight(float height)Sets the height of this rectangleRectangleRectangle. setPosition(float x, float y)Sets the x and y-coordinates of the bottom left cornerRectangleRectangle. setPosition(Vector2 position)Sets the x and y-coordinates of the bottom left corner from vectorRectangleRectangle. setSize(float sizeXY)Sets the squared size of this rectangleRectangleRectangle. setSize(float width, float height)Sets the width and height of this rectangleRectangleRectangle. setWidth(float width)Sets the width of this rectangleRectangleRectangle. setX(float x)Sets the x-coordinate of the bottom left cornerRectangleRectangle. setY(float y)Sets the y-coordinate of the bottom left cornerMethods in com.badlogic.gdx.math with parameters of type Rectangle Modifier and Type Method Description booleanRectangle. contains(Rectangle rectangle)RectangleRectangle. fitInside(Rectangle rect)Fits this rectangle into another rectangle while maintaining aspect ratio.RectangleRectangle. fitOutside(Rectangle rect)Fits this rectangle around another rectangle while maintaining aspect ratio.static booleanIntersector. intersectRectangles(Rectangle rectangle1, Rectangle rectangle2, Rectangle intersection)Determines whether the given rectangles intersect and, if they do, sets the suppliedintersectionrectangle to the area of overlap.static booleanIntersector. intersectSegmentRectangle(float startX, float startY, float endX, float endY, Rectangle rectangle)Determines whether the given rectangle and segment intersectstatic booleanIntersector. intersectSegmentRectangle(Vector2 start, Vector2 end, Rectangle rectangle)RectangleRectangle. merge(Rectangle rect)Merges this rectangle with the other rectangle.static booleanIntersector. overlaps(Circle c, Rectangle r)static booleanIntersector. overlaps(Rectangle r1, Rectangle r2)booleanRectangle. overlaps(Rectangle r)RectangleRectangle. set(Rectangle rect)Sets the values of the given rectangle to this rectangle.Constructors in com.badlogic.gdx.math with parameters of type Rectangle Constructor Description Rectangle(Rectangle rect)Constructs a rectangle based on the given rectangle -
Uses of Rectangle in com.badlogic.gdx.scenes.scene2d
Methods in com.badlogic.gdx.scenes.scene2d that return Rectangle Modifier and Type Method Description RectangleGroup. getCullingArea()Methods in com.badlogic.gdx.scenes.scene2d with parameters of type Rectangle Modifier and Type Method Description voidStage. calculateScissors(Rectangle localRect, Rectangle scissorRect)Calculates window scissor coordinates from local coordinates using the batch's current transformation matrix.voidGroup. setCullingArea(Rectangle cullingArea)Children completely outside of this rectangle will not be drawn. -
Uses of Rectangle in com.badlogic.gdx.scenes.scene2d.ui
Subclasses of Rectangle in com.badlogic.gdx.scenes.scene2d.ui Modifier and Type Class Description static classTable.DebugRectMethods in com.badlogic.gdx.scenes.scene2d.ui that return Rectangle Modifier and Type Method Description RectangleList. getCullingArea()Methods in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Rectangle Modifier and Type Method Description voidContainer. setCullingArea(Rectangle cullingArea)voidList. setCullingArea(Rectangle cullingArea) -
Uses of Rectangle in com.badlogic.gdx.scenes.scene2d.utils
Methods in com.badlogic.gdx.scenes.scene2d.utils that return Rectangle Modifier and Type Method Description static RectangleScissorStack. getViewport()static RectangleScissorStack. peekScissors()static RectangleScissorStack. popScissors()Pops the current scissor rectangle from the stack and sets the new scissor area to the new top of stack rectangle.Methods in com.badlogic.gdx.scenes.scene2d.utils with parameters of type Rectangle Modifier and Type Method Description static voidScissorStack. calculateScissors(Camera camera, float viewportX, float viewportY, float viewportWidth, float viewportHeight, Matrix4 batchTransform, Rectangle area, Rectangle scissor)static voidScissorStack. calculateScissors(Camera camera, Matrix4 batchTransform, Rectangle area, Rectangle scissor)Calculates a scissor rectangle using 0,0,Gdx.graphics.getWidth(),Gdx.graphics.getHeight() as the viewport.static booleanScissorStack. pushScissors(Rectangle scissor)Pushes a new scissorRectangleonto the stack, merging it with the current top of the stack.voidCullable. setCullingArea(Rectangle cullingArea) -
Uses of Rectangle in com.badlogic.gdx.utils
Methods in com.badlogic.gdx.utils with parameters of type Rectangle Modifier and Type Method Description voidQuadTreeFloat. query(Rectangle rect, FloatArray results) -
Uses of Rectangle in com.badlogic.gdx.utils.viewport
Methods in com.badlogic.gdx.utils.viewport with parameters of type Rectangle Modifier and Type Method Description voidViewport. calculateScissors(Matrix4 batchTransform, Rectangle area, Rectangle scissor)
-