Package com.flir.thermalsdk.image
Class Rectangle
java.lang.Object
com.flir.thermalsdk.image.Rectangle
Defines a Rectangle. Default coordinates are 0,0,0,0.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
public final int xThe X coordinate of the left side of the Rectangle. -
y
public final int yThe Y coordinate of the top of the Rectangle. -
width
public final int widthThe width of the Rectangle. -
height
public final int heightThe height of the Rectangle.
-
-
Constructor Details
-
Rectangle
public Rectangle(int x, int y, int width, int height) Create a Rectangle.- Parameters:
x
- The X coordinate of the left side of the Rectangley
- The Y coordinate of the top of the Rectanglewidth
- The width of the Rectangleheight
- The height of the Rectangle- Throws:
IllegalArgumentException
- if any of the values would create an invalid rectangle, i.e. negative width/height
-
-
Method Details