public class Rectangle
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
float |
height |
float |
width |
float |
x |
float |
y |
Constructor and Description |
---|
Rectangle(float x,
float y,
float width,
float height) |
Modifier and Type | Method and Description |
---|---|
Rectangle |
clone() |
java.lang.String |
toString() |
public final float x
public final float y
public final float width
public final float height
public Rectangle(float x, float y, float width, float height)
x
- the X value of the upper left corner of the rectangley
- the Y value of the upper left corner of the rectanglewidth
- the width of the rectangleheight
- the height of the rectanglepublic Rectangle clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object