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

Class RectangleLength2D_I32

  • All Implemented Interfaces:
    java.io.Serializable


    public class RectangleLength2D_I32
    extends java.lang.Object
    implements java.io.Serializable
    An axis aligned rectangle in 2D that is specified by its lower extent (x0,y0), width, and height. The three other corners are (x0 + width-1,y0), (x0,y0 + height-1), (x0 + width-1,y0 + height-1).
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      int height
      Rectangle's height
      int width
      Rectangle's width
      int x0
      Lower extent x-axis
      int y0
      Lower extent y-axis
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getHeight() 
      int getWidth() 
      int getX() 
      int getY() 
      void set(int tl_x, int tl_y, int width, int height) 
      void set(RectangleLength2D_I32 r)
      Sets this rectangle to be equal to the passed in rectangle.
      void setHeight(int height) 
      void setLowerExtent(int x, int y)
      Sets lower extent
      void setWidth(int width) 
      void setX(int x)
      Sets the Lower-extent x-coordinate
      void setY(int y)
      Sets the Lower-extenty-coordinate
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • x0

        public int x0
        Lower extent x-axis
      • y0

        public int y0
        Lower extent y-axis
      • width

        public int width
        Rectangle's width
      • height

        public int height
        Rectangle's height
    • Constructor Detail

      • RectangleLength2D_I32

        public RectangleLength2D_I32()
      • RectangleLength2D_I32

        public RectangleLength2D_I32(int x0,
                                     int y0,
                                     int width,
                                     int height)
    • Method Detail

      • set

        public void set(int tl_x,
                        int tl_y,
                        int width,
                        int height)
      • setLowerExtent

        public void setLowerExtent(int x,
                                   int y)
        Sets lower extent
        Parameters:
        x - x-coordinate
        y - y-coordinate
      • getWidth

        public int getWidth()
      • setWidth

        public void setWidth(int width)
      • getHeight

        public int getHeight()
      • setHeight

        public void setHeight(int height)
      • getX

        public int getX()
        Returns:
        Lower-extent x-coordinate
      • setX

        public void setX(int x)
        Sets the Lower-extent x-coordinate
        Parameters:
        x - Lower-extentx-coordinate
      • getY

        public int getY()
        Returns:
        Lower-extent y-coordinate
      • setY

        public void setY(int y)
        Sets the Lower-extenty-coordinate
        Parameters:
        y - Lower-extent y-coordinate
      • set

        public void set(RectangleLength2D_I32 r)
        Sets this rectangle to be equal to the passed in rectangle.
        Parameters:
        r - Rectangle which this is to be set equal to
      • 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.