public class Rectangle
extends java.lang.Object
Constructor and Description |
---|
Rectangle(double x,
double y,
double width,
double height)
Creates a Rectangle using doubles which will be rounded down to Integers.
|
Rectangle(int x,
int y,
int width,
int height)
Creates a Rectangle.
|
Modifier and Type | Method and Description |
---|---|
org.opencv.core.Rect |
toRect()
Creates an OpenCV Rect the same dimensions as this Rectangle.
|
public final int x
public final int y
public final int width
public final int height
public Rectangle(int x, int y, int width, int height)
x
- The X coordinate of the Rectangle.y
- The Y coordinate of the Rectangle.width
- The width of the Rectangle.height
- The height of this Rectangle.public Rectangle(double x, double y, double width, double height)
x
- The X coordinate of the Rectangle.y
- The Y coordinate of the Rectangle.width
- The width of the Rectangle.height
- The height of this Rectangle.