georegression.struct.shapes
Class Rectangle2D_I32
- java.lang.Object
-
- georegression.struct.shapes.Rectangle2D_I32
-
- Direct Known Subclasses:
- ImageRectangle
public class Rectangle2D_I32 extends java.lang.ObjectAn 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 Summary
Fields Modifier and Type Field and Description intx0Lower extentintx1Upper extentinty0Lower extentinty1Upper extent
-
Constructor Summary
Constructors Constructor and Description Rectangle2D_I32()Rectangle2D_I32(int x0, int y0, int x1, int y1)Rectangle2D_I32(Rectangle2D_I32 orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intarea()voidenforceExtents()Makes sure x0,y0 is the lower extent and x1,y1 is the upper extentintgetHeight()intgetWidth()intgetX0()intgetX1()intgetY0()intgetY1()voidset(int x0, int y0, int x1, int y1)voidset(Rectangle2D_I32 orig)voidsetX0(int x0)voidsetX1(int x1)voidsetY0(int y0)voidsetY1(int y1)java.lang.StringtoString()
-
-
-
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(Rectangle2D_I32 orig)
-
Rectangle2D_I32
public Rectangle2D_I32()
-
-
Method Detail
-
set
public void set(Rectangle2D_I32 orig)
-
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:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG