public class Rect
extends java.lang.Object
Constructor and Description |
---|
Rect() |
Rect(double[] vals) |
Rect(int x,
int y,
int width,
int height) |
Rect(Point p1,
Point p2) |
Rect(Point p,
Size s) |
public Rect()
public Rect(double[] vals)
public Rect(int x, int y, int width, int height)
public double area()
public Point br()
public Rect clone()
clone
in class java.lang.Object
public boolean contains(Point p)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void set(double[] vals)
public Size size()
public Point tl()
public java.lang.String toString()
toString
in class java.lang.Object