public class Rectangle3D
extends Object
Modifier and Type | Field and Description |
---|---|
double |
depth |
double |
height |
double |
width |
double |
x |
double |
y |
Constructor and Description |
---|
Rectangle3D() |
Rectangle3D(double x,
double y,
double width,
double height)
Create a new 3D rectangle with the given dimensions and depth 1.
|
Rectangle3D(double x,
double y,
double width,
double height,
double depth)
Create a new 3D rectangle with the given dimensions.
|
Rectangle3D(Rectangle2D.Double rect) |
Modifier and Type | Method and Description |
---|---|
double |
getDepth() |
double |
getHeight() |
Rectangle2D.Double |
getRectangle2D() |
double |
getWidth() |
double |
getX() |
double |
getY() |
void |
setDepth(double depth) |
void |
setHeight(double height) |
void |
setRectangle2D(Rectangle2D.Double rect)
Override the 2D dimensions leaving the depth intact.
|
void |
setWidth(double width) |
void |
setX(double x) |
void |
setY(double y) |
public double x
public double y
public double height
public double width
public double depth
public Rectangle3D(double x, double y, double width, double height, double depth)
x
- y
- height
- width
- depth
- public Rectangle3D(double x, double y, double width, double height)
x
- y
- width
- height
- public Rectangle3D(Rectangle2D.Double rect)
public Rectangle3D()
public void setRectangle2D(Rectangle2D.Double rect)
rect
- public Rectangle2D.Double getRectangle2D()
public double getX()
public void setX(double x)
public double getY()
public void setY(double y)
public double getWidth()
public void setWidth(double width)
public double getHeight()
public void setHeight(double height)
public double getDepth()
public void setDepth(double depth)