Lines Matching defs:Rectangle
26 public class Rectangle extends Quad {
28 public Rectangle() {
31 public Rectangle(float x, float y, float width, float height) {
38 public Rectangle(Point origin, Point size) {
45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) {
50 return new Rectangle(p0.rotatedAround(center, rotation),
56 private Rectangle(Point p0, Point p1, Point p2, Point p3) {
60 public static Rectangle fromCenterVerticalAxis(Point center, Point vAxis, Point size) {
63 return new Rectangle(center.minus(dx).minus(dy),
82 public Rectangle scaled(float s) {
83 return new Rectangle(p0.times(s), p1.times(s), p2.times(s), p3.times(s));
87 public Rectangle scaled(float x, float y) {
88 return new Rectangle(p0.mult(x, y), p1.mult(x, y), p2.mult(x, y), p3.mult(x, y));
91 //public Rectangle rotated(float radians) {