Modifier and Type | Method and Description |
---|---|
Rectangle |
Sprite.getBoundingRectangle()
Returns the bounding axis aligned
Rectangle that bounds this sprite. |
Rectangle |
PolygonSprite.getBoundingRectangle()
Returns the bounding axis aligned
Rectangle that bounds this sprite. |
Rectangle |
PixmapPacker.getRect(String name) |
Rectangle |
PixmapPacker.pack(String name,
Pixmap image)
Inserts the given
Pixmap . |
Modifier and Type | Method and Description |
---|---|
OrderedMap<String,Rectangle> |
PixmapPacker.Page.getRects() |
Modifier and Type | Method and Description |
---|---|
Rectangle |
RectangleMapObject.getRectangle() |
Modifier and Type | Method and Description |
---|---|
Rectangle |
BatchTiledMapRenderer.getViewBounds() |
Modifier and Type | Field and Description |
---|---|
static Rectangle |
Rectangle.tmp
Static temporary rectangle.
|
static Rectangle |
Rectangle.tmp2
Static temporary rectangle.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
Rectangle.fitInside(Rectangle rect)
Fits this rectangle into another rectangle while maintaining aspect ratio.
|
Rectangle |
Rectangle.fitOutside(Rectangle rect)
Fits this rectangle around another rectangle while maintaining aspect ratio.
|
Rectangle |
Polygon.getBoundingRectangle()
Returns an axis-aligned bounding box of this polygon.
|
Rectangle |
Rectangle.merge(float x,
float y)
Merges this rectangle with a point.
|
Rectangle |
Rectangle.merge(Rectangle rect)
Merges this rectangle with the other rectangle.
|
Rectangle |
Rectangle.merge(Vector2 vec)
Merges this rectangle with a point.
|
Rectangle |
Rectangle.merge(Vector2[] vecs)
Merges this rectangle with a list of points.
|
Rectangle |
Rectangle.set(float x,
float y,
float width,
float height) |
Rectangle |
Rectangle.set(Rectangle rect)
Sets the values of the given rectangle to this rectangle.
|
Rectangle |
Rectangle.setCenter(float x,
float y)
Moves this rectangle so that its center point is located at a given position
|
Rectangle |
Rectangle.setCenter(Vector2 position)
Moves this rectangle so that its center point is located at a given position
|
Rectangle |
Rectangle.setHeight(float height)
Sets the height of this rectangle
|
Rectangle |
Rectangle.setPosition(float x,
float y)
Sets the x and y-coordinates of the bottom left corner
|
Rectangle |
Rectangle.setPosition(Vector2 position)
Sets the x and y-coordinates of the bottom left corner from vector
|
Rectangle |
Rectangle.setSize(float sizeXY)
Sets the squared size of this rectangle
|
Rectangle |
Rectangle.setSize(float width,
float height)
Sets the width and height of this rectangle
|
Rectangle |
Rectangle.setWidth(float width)
Sets the width of this rectangle
|
Rectangle |
Rectangle.setX(float x)
Sets the x-coordinate of the bottom left corner
|
Rectangle |
Rectangle.setY(float y)
Sets the y-coordinate of the bottom left corner
|
Modifier and Type | Method and Description |
---|---|
boolean |
Rectangle.contains(Rectangle rectangle) |
Rectangle |
Rectangle.fitInside(Rectangle rect)
Fits this rectangle into another rectangle while maintaining aspect ratio.
|
Rectangle |
Rectangle.fitOutside(Rectangle rect)
Fits this rectangle around another rectangle while maintaining aspect ratio.
|
static boolean |
Intersector.intersectRectangles(Rectangle rectangle1,
Rectangle rectangle2,
Rectangle intersection)
Determines whether the given rectangles intersect and, if they do, sets the supplied
intersection rectangle to the
area of overlap. |
Rectangle |
Rectangle.merge(Rectangle rect)
Merges this rectangle with the other rectangle.
|
static boolean |
Intersector.overlaps(Circle c,
Rectangle r) |
boolean |
Rectangle.overlaps(Rectangle r) |
static boolean |
Intersector.overlaps(Rectangle r1,
Rectangle r2) |
Rectangle |
Rectangle.set(Rectangle rect)
Sets the values of the given rectangle to this rectangle.
|
Constructor and Description |
---|
Rectangle(Rectangle rect)
Constructs a rectangle based on the given rectangle
|
Modifier and Type | Method and Description |
---|---|
void |
Stage.calculateScissors(Rectangle localRect,
Rectangle scissorRect)
Calculates window scissor coordinates from local coordinates using the batch's current transformation matrix.
|
void |
Group.setCullingArea(Rectangle cullingArea)
Children completely outside of this rectangle will not be drawn.
|
Modifier and Type | Class and Description |
---|---|
static class |
Table.DebugRect |
Modifier and Type | Method and Description |
---|---|
void |
List.setCullingArea(Rectangle cullingArea) |
Modifier and Type | Method and Description |
---|---|
static Rectangle |
ScissorStack.getViewport() |
static Rectangle |
ScissorStack.peekScissors() |
static Rectangle |
ScissorStack.popScissors()
Pops the current scissor rectangle from the stack and sets the new scissor area to the new top of stack rectangle.
|
Modifier and Type | Method and Description |
---|---|
static void |
ScissorStack.calculateScissors(Camera camera,
float viewportX,
float viewportY,
float viewportWidth,
float viewportHeight,
Matrix4 batchTransform,
Rectangle area,
Rectangle scissor)
|
static void |
ScissorStack.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 boolean |
ScissorStack.pushScissors(Rectangle scissor)
Pushes a new scissor
Rectangle onto the stack, merging it with the current top of the stack. |
void |
Cullable.setCullingArea(Rectangle cullingArea) |
Modifier and Type | Method and Description |
---|---|
void |
Viewport.calculateScissors(Matrix4 batchTransform,
Rectangle area,
Rectangle scissor) |
Copyright © 2014. All Rights Reserved.