public class Rectangle extends Quad
Constructor and Description |
---|
Rectangle() |
Rectangle(float x,
float y,
float width,
float height) |
Rectangle(Point origin,
Point size) |
Modifier and Type | Method and Description |
---|---|
Point |
center() |
static Rectangle |
fromCenterVerticalAxis(Point center,
Point vAxis,
Point size) |
static Rectangle |
fromRotatedRect(Point center,
Point size,
float rotation) |
float |
getHeight() |
float |
getWidth() |
Rectangle |
scaled(float s) |
Rectangle |
scaled(float x,
float y) |
boundingBox, getBoundingHeight, getBoundingWidth, IsInUnitRange, toString, translated, translated
public Rectangle()
public Rectangle(float x, float y, float width, float height)