public class Rectangle extends com.badlogic.gdx.math.Rectangle implements Parallelogram
| Constructor and Description |
|---|
Rectangle() |
Rectangle(float x,
float y,
float width,
float height) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Positionable> |
addPostionChangeListener(PositionChangeListener<T> listener) |
boolean |
contains(Parallelogram parallelogram) |
boolean |
contains(Positionable positionable) |
boolean |
contains(Rectangle rectangle) |
void |
draw(Graphics g) |
float |
getCenterX() |
float |
getCenterY() |
float |
getDistanceTo(Positionable positionable) |
float |
getMaxX() |
float |
getMaxY() |
float |
getMinX() |
float |
getMinY() |
int |
getNumberOfSides() |
float |
getRotation() |
Rectangle |
intersection(Rectangle rect) |
boolean |
intersects(float x,
float y,
float width,
float height) |
boolean |
intersects(LineSegment lineSegment) |
boolean |
intersects(Parallelogram parallelogram) |
boolean |
intersects(Rectangle rectangle) |
<T extends Positionable> |
removePositionChangeListener(PositionChangeListener<T> listener) |
void |
rotate(float degrees) |
void |
rotateAround(Point center,
float degrees) |
void |
set(float x,
float y,
float width,
float height) |
void |
set(Rectangle rectangle) |
void |
set(com.badlogic.gdx.math.Rectangle rectangle) |
void |
setHeight(float height) |
void |
setWidth(float width) |
void |
setX(float x) |
void |
setY(float y) |
contains, contains, getHeight, getWidth, getX, getY, merge, overlaps, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHeight, getWidthgetX, getYpublic Rectangle()
public Rectangle(float x,
float y,
float width,
float height)
public float getDistanceTo(Positionable positionable)
getDistanceTo in interface Positionablepublic <T extends Positionable> void addPostionChangeListener(PositionChangeListener<T> listener)
addPostionChangeListener in interface Positionablepublic <T extends Positionable> void removePositionChangeListener(PositionChangeListener<T> listener)
removePositionChangeListener in interface Positionablepublic float getRotation()
getRotation in interface Parallelogrampublic void rotate(float degrees)
rotate in interface Parallelogrampublic void rotateAround(Point center, float degrees)
rotateAround in interface Parallelogrampublic boolean intersects(LineSegment lineSegment)
intersects in interface Parallelogrampublic boolean intersects(Rectangle rectangle)
public boolean intersects(Parallelogram parallelogram)
intersects in interface Parallelogrampublic boolean intersects(float x,
float y,
float width,
float height)
intersects in interface Parallelogrampublic boolean contains(Parallelogram parallelogram)
contains in interface Parallelogrampublic boolean contains(Rectangle rectangle)
public boolean contains(Positionable positionable)
contains in interface Parallelogrampublic int getNumberOfSides()
getNumberOfSides in interface Shapepublic void set(float x,
float y,
float width,
float height)
set in class com.badlogic.gdx.math.Rectanglepublic void set(Rectangle rectangle)
public void set(com.badlogic.gdx.math.Rectangle rectangle)
set in class com.badlogic.gdx.math.Rectanglepublic void setX(float x)
setX in class com.badlogic.gdx.math.Rectanglepublic void setY(float y)
setY in class com.badlogic.gdx.math.Rectanglepublic void setWidth(float width)
setWidth in class com.badlogic.gdx.math.Rectanglepublic void setHeight(float height)
setHeight in class com.badlogic.gdx.math.Rectanglepublic float getCenterX()
public float getCenterY()
public float getMinX()
public float getMinY()
public float getMaxX()
public float getMaxY()
Copyright © 2014. All rights reserved.