public class Box extends Model
Here is a picture showing how the cube's eight vertices are labeled.
v[4]
+-----------------+ v[5]
/| /|
/ | / |
/ | / |
/ | / |
v[7] +-----------------+ v[6] |
| | | | y
| | | | |
| | | | |
| v[0] +---------|-------+ v[1] |
| / | / |
| / | / +----. x
| / | / /
|/ |/ /
+-----------------+ /
v[3] v[2] z
Cube
lineSegmentList, vertexList, visible
Constructor and Description |
---|
Box()
Create a
Box with all three sides of length 1. |
Box(double xs,
double ys,
double zs)
Create a
Box with the given side lengths. |
addLineSegment, addLineSegment, addVertex, setColor, setColorRandom, setRandomColors, setRandomLineSegmentColors, toString
public Box()
Box
with all three sides of length 1.public Box(double xs, double ys, double zs)
Box
with the given side lengths.xs
- the size of the Box
along the x-axisys
- the size of the Box
along the y-axiszs
- the size of the Box
along the z-axis