public class Size
extends java.lang.Object
Constructor and Description |
---|
Size() |
Size(double[] vals) |
Size(double width,
double height) |
Size(Point p) |
Modifier and Type | Method and Description |
---|---|
double |
area() |
Size |
clone() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
set(double[] vals) |
java.lang.String |
toString() |
public Size()
public Size(double[] vals)
public Size(double width, double height)
public Size(Point p)
public double area()
public Size clone()
clone
in class java.lang.Object
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 java.lang.String toString()
toString
in class java.lang.Object