Lines Matching refs:center
45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) {
46 Point p0 = new Point(center.x - size.x/2f, center.y - size.y/2f);
47 Point p1 = new Point(center.x + size.x/2f, center.y - size.y/2f);
48 Point p2 = new Point(center.x - size.x/2f, center.y + size.y/2f);
49 Point p3 = new Point(center.x + size.x/2f, center.y + size.y/2f);
50 return new Rectangle(p0.rotatedAround(center, rotation),
51 p1.rotatedAround(center, rotation),
52 p2.rotatedAround(center, rotation),
53 p3.rotatedAround(center, rotation));
60 public static Rectangle fromCenterVerticalAxis(Point center, Point vAxis, Point size) {
63 return new Rectangle(center.minus(dx).minus(dy),
64 center.plus(dx).minus(dy),
65 center.minus(dx).plus(dy),
66 center.plus(dx).plus(dy));
77 public Point center() {