Class GeneralRectangle



  • public class GeneralRectangle
    extends Object
    Rectangles in general orientation. A rectangle is stored in an float-array of size 8. The array contains the coordinates in the following order: [x1, y1, x2, y2, x3, y3, x4, y4] This class provides utility methods for manipulating such rectangles.
    • Constructor Detail

      • GeneralRectangle

        public GeneralRectangle()
    • Method Detail

      • getBoundingBox

        public static Rectangle getBoundingBox(float[] box)
      • intersects

        public static boolean intersects(float[] box1,
                                         float[] box2)
      • createPolygon

        public static Polygon createPolygon(float[] box)