Documentation of 'georegression.struct.shapes.Rectangle2D_I32' Java class
Rectangle2D_I32
georegression.struct.shapes

Class Rectangle2D_I32

  • Direct Known Subclasses:
    ImageRectangle


    public class Rectangle2D_I32
    extends java.lang.Object
    An axis aligned rectangle in 2D that is specified by its lower extent (x0,y0), and upper extent (x1,y1). x0 ≤ x1 and y0 ≤ y1. (x1,y1) is exclusive and not contained in the rectangle.
    • Field Detail

      • x0

        public int x0
        Lower extent
      • y0

        public int y0
        Lower extent
      • x1

        public int x1
        Upper extent
      • y1

        public int y1
        Upper extent
    • Constructor Detail

      • Rectangle2D_I32

        public Rectangle2D_I32(int x0,
                               int y0,
                               int x1,
                               int y1)
      • Rectangle2D_I32

        public Rectangle2D_I32()
    • Method Detail

      • set

        public void set(int x0,
                        int y0,
                        int x1,
                        int y1)
      • enforceExtents

        public void enforceExtents()
        Makes sure x0,y0 is the lower extent and x1,y1 is the upper extent
      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • area

        public int area()
      • getX0

        public int getX0()
      • setX0

        public void setX0(int x0)
      • getY0

        public int getY0()
      • setY0

        public void setY0(int y0)
      • getX1

        public int getX1()
      • setX1

        public void setX1(int x1)
      • getY1

        public int getY1()
      • setY1

        public void setY1(int y1)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.