public final class Dim3
extends Object
The Dim3
class represents the dimensions of a cube.
- See Also:
-
-
Field Summary
Fields
int
The size of this cube in the x dimension.
int
The size of this cube in the y dimension.
int
The size of this cube in the z dimension.
-
Constructor Summary
Constructors
Creates a cube of dimension (x,1,1).
Creates a cube of dimension (x,y,1).
Dim3(int x,
int y,
int z)
Creates a cube of dimension (x,y,z).
-
Method Summary
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
x
public int x
The size of this cube in the x dimension.
-
y
public int y
The size of this cube in the y dimension.
-
z
public int z
The size of this cube in the z dimension.
-
Constructor Details
-
Dim3
public Dim3(int x)
Creates a cube of dimension (x,1,1).
- Parameters:
x
- the x dimension
-
Dim3
public Dim3(int x,
int y)
Creates a cube of dimension (x,y,1).
- Parameters:
x
- the x dimension
y
- the y dimension
-
Dim3
public Dim3(int x,
int y,
int z)
Creates a cube of dimension (x,y,z).
- Parameters:
x
- the x dimension
y
- the y dimension
z
- the z dimension