public class Rect2d
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
height |
double |
width |
double |
x |
double |
y |
Constructor and Description |
---|
Rect2d() |
Rect2d(double[] vals) |
Rect2d(double x,
double y,
double width,
double height) |
Rect2d(Point p1,
Point p2) |
Rect2d(Point p,
Size s) |
Modifier and Type | Method and Description |
---|---|
double |
area() |
Point |
br() |
Rect2d |
clone() |
boolean |
contains(Point p) |
boolean |
empty() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
set(double[] vals) |
Size |
size() |
Point |
tl() |
java.lang.String |
toString() |
public double x
public double y
public double width
public double height
public Rect2d(double x, double y, double width, double height)
public Rect2d()
public Rect2d(double[] vals)
public void set(double[] vals)
public Rect2d clone()
clone
in class java.lang.Object
public Point tl()
public Point br()
public Size size()
public double area()
public boolean empty()
public boolean contains(Point p)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Generated on Wed Jul 4 2018 14:01:58 UTC / OpenCV 3.4.2